SOLR提交和优化问题 [英] SOLR commit and optimize questions
问题描述
我有一个分类广告网站。用户可以投放广告,修改广告,查看广告等。
每当用户投放广告时,我都会向solr添加文档。
我不知道,但是,什么时候提交它。
我应该怎么办?
实际上,经常提交和优化使事情真的很慢。太重了。
经过一天的搜索和阅读,我发现了:
优化导致索引的大小加倍,而beeing优化,并使事情真的很慢。
2-在每次添加之后提交并不是一个好主意,最好每天提交几次,然后每天只进行一次优化最多。
3-提交应在solrconfig.xml文件中设置为autoCommit,并且应根据您的需要进行调整。
I have a classifieds website. Users may put ads, edit ads, view ads etc.
Whenever a user puts an ad, I am adding a document to solr. I don't know, however, when to commit it. Commit slows things down from what I have read.
How should I do it? Autocommit every 12 hours or so?
Also, how should I do it with optimize?
Actually, committing often and optimizing makes things really slow. It's too heavy.
After a day of searching and reading stuff, I found out this:
1- Optimize causes the index to double in size while beeing optimized, and makes things really slow.
2- Committing after each add is NOT a good idea, it's better to commit a couple of times a day, and then make an optimize only once a day at most.
3- Commit should be set to "autoCommit" in the solrconfig.xml file, and there it should be tuned according to your needs.
这篇关于SOLR提交和优化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!