Version elasticsearch 1.4
I add via elasticsearch-php
The speed of adding about 0.5-1 seconds per 1 item. All configs are default. Cleared all indexes, created a new one, but this did not affect the speed. What can be wrong?
Version elasticsearch 1.4
I add via elasticsearch-php
The speed of adding about 0.5-1 seconds per 1 item. All configs are default. Cleared all indexes, created a new one, but this did not affect the speed. What can be wrong?
The data is in ElasticSearch and should not fall at lightning speed, since when inserting it is necessary to correct the full-text index and decompose the data on shards. Delaying the appearance of read data in a few seconds for ElasticSearch is usually the case. His task as quickly as possible to give the result of the search, it is solved in exchange for not very speedy insertion of data.
In addition, as Yuiry correctly points out in the comments, if you have significant amounts of inserted data, you can resort to batch insertion using bulk. In this case, indexing will take place after inserting a significant amount of records (which you can customize yourself, for example, 1000), and not after inserting each individual record.
Source: https://ru.stackoverflow.com/questions/469809/
All Articles