I have 120k db records to commit into a Solr index.
My question is:
should I commit after submitting every 10k records, or only commit once after submitting all the 120k records?
Is there any difference between these two options?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use Solr’s default auto-commit values, which I believe are quite reasonable. If not, you can adjust them to suit your needs:
This means that it will commit when there are more than 10000 docs waiting to be committed, or 50s have passed since a document was added.