我们的应用程序是使用Solr设计的,我们的用户会使用大量页面来完成。有时候下一页浏览很慢..
在Oracle中,我们需要调整大量参数以获得更好的性能,就像Solr有任何参数一样。
我在此页面中看到http://wiki.apache.org/solr/SolrPerformanceFactors没有线索。请求帮助。
Solr中是否有可以调整以提高性能的设置?
答案 0 :(得分:3)
我猜您仍在使用开箱即用的默认缓存设置。检查当前配置的设置。这是你可以尝试的,
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个结果/页&amp;您的用户通常浏览5个页面,将queryResultWindowSize
,queryResultMaxDocsCached
设置为125.这将缓存典型用户行为所需的结果。
注意:这些会对您的记忆产生影响,影响程度取决于您的文档大小和范围。其他设置。