Solr分页调整设置



我们的应用程序是用Solr设计的,我们的用户需要使用大量页面来浏览。有时下一页浏览速度较慢。。

在Oracle中,我们有很多参数需要调整以获得更好的性能,就像Solr有任何参数一样。

我读过http://wiki.apache.org/solr/SolrPerformanceFactors这一页没有线索。thx寻求帮助。

Solr中是否有可调整的设置以提高性能?

我猜您仍在使用开箱即用的默认缓存设置。请检查当前配置的设置。这是你可以尝试的,

solrconfig.xml的典型默认设置

<!-- An optimization for use with the queryResultCache.  When a search
     is requested, a superset of the requested number of document ids
     are collected.  For example, if a search for a particular query
     requests matching documents 10 through 19, and queryWindowSize is 50,
     then documents 0 through 49 will be collected and cached.  Any further
     requests in that range can be satisfied via the cache.  -->
<queryResultWindowSize>20</queryResultWindowSize>
<!-- Maximum number of documents to cache for any entry in the queryResultCache. -->
<queryResultMaxDocsCached>200</queryResultMaxDocsCached>

以上两个参数会影响分页,例如,如果你的应用程序显示25个结果/页&您的用户通常浏览5个页面,请将queryResultWindowSizequeryResultMaxDocsCached都设置为125。这将缓存典型用户行为所需的结果。

注意:这些会对你的记忆力产生影响,影响的程度取决于你的文档大小&其他设置。

最新更新