lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tedsolr <tsm...@sciquest.com>
Subject SolrClient: reuse the client or just call close()?
Date Wed, 04 Nov 2015 19:52:44 GMT
I'm wondering what the best practice is for the implementations of
SolrClient: CloudSolrClient & HttpSolrClient. I am caching my clients per
collection (core) and reusing them right now. Initially this was prompted by
the old  solr wiki page <https://wiki.apache.org/solr/Solrj>   and SOLR-861.
Is that still a good idea? Is that better than creating new ones over and
over and remembering to call close() after each use?

thanks!
Solr 5.2.1



--
View this message in context: http://lucene.472066.n3.nabble.com/SolrClient-reuse-the-client-or-just-call-close-tp4238280.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message