2012-01-25 3 views
0

우리는 우리의 응용 프로그램을 Solr과 함께 설계했으며, 사용자들은 많은 페이지를 사용합니다. 언젠가는 다음 페이지 검색 속도가 느립니다.Solr 페이지 매김 튜닝 설정

오라클에는 성능 향상을 위해 많은 매개 변수가 있습니다.

나는이 페이지에서 http://wiki.apache.org/solr/SolrPerformanceFactors을 읽을 수 없습니다. 도움을 청합니다.

성능을 향상시키기 위해 조정할 수있는 Solr 설정이 있습니까?

답변

3

기본 캐시 설정을 그대로 사용하고 계신 것으로 보입니다. 현재 설정에서 해당 설정을 확인하십시오. 이것은 당신이 표시를 사용자가 5를 탐색 & 25 개 결과/페이지 app 해당하는 경우

<!-- 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> 

위의 두 가지 매개 변수, 예를 들어, 페이지 매김 영향을 solrconfig.xml에서

일반적인 기본 설정을 시도 할 수 것입니다 일반적으로 페이지 모두 queryResultWindowSize, queryResultMaxDocsCached을 125로 설정하십시오. 그러면 일반적인 사용자 동작에 필요한 결과가 캐시됩니다.

참고 : 이것은 메모리에 영향을 미칩니다. 영향의 정도는 문서 크기 & 기타 설정에 따라 다릅니다.

+0

정말 감사합니다. 감사합니다. –