Faster indexing in Elastic Search through rake task in rails
I have more over 1.5 million records in my MySQL database. If I run the rake task to index data into AWS ElasticSearch, it is taking more than 3 days to complete indexing. Is there any alternative way to do faster indexing?
First of all, use Bulk API https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
You can also disable index refreshing and re-enable it after you index whole dataset.