Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Apache Solr High Performance

You're reading from  Apache Solr High Performance

Product type Book
Published in Mar 2014
Publisher
ISBN-13 9781782164821
Pages 124 pages
Edition 1st Edition
Languages
Author (1):
Surendra Mohan Surendra Mohan
Profile icon Surendra Mohan

Solr caching


In this section, we will learn about the different caching techniques and ways to configure them appropriately so as to achieve better performance of your Solr instance.

Document caching

Document cache, one of the cache types available with us, stores Lucene's internal documents fetched from the disk. In order to get the document caching to work at its optimal level, you need to configure it appropriately so as to minimize I/O calls that result in boosted deployment performance.

Let us assume that we are dealing with the deployment of Solr, where we have approximately 100,000 documents to address. Additionally, our single Solr instance gets a maximum of 10 concurrent queries and each query can fetch 220 documents, which is the maximum count.

Based on the preceding parameters, our documentcache tag should look similar to the following code snippet (add the following code to your solrconfig.xml file):

<documentCache
  class="solr.LRUCache"
  size="2200"
  initialSize="2200"/>...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}