richardwilly98 / elasticsearch-river-mongodb

MongoDB River Plugin for ElasticSearch
1.12k stars 215 forks source link

Update Delay #513

Open digitaldavenyc opened 9 years ago

digitaldavenyc commented 9 years ago

How long does it take for the river plugin to update elasticsearch with data that has changed on mongo?

dimon222 commented 9 years ago

Should be instantly I think. Depends on network and load on ES/MongoDB

warm200 commented 9 years ago

it has a delay when I delete data on mongo, I start the server on local, and I use the fresh method of elasticsearch after I delete data on mongo, it still has a delay, I have to refresh the page to see the change ,,don't know why,

ewgRa commented 9 years ago

It is not realtime. It has some delay, depends on network and so on. Also bear in mind that ES must index changes.

warm200 commented 9 years ago

agree, delay is acceptable, maybe it's not a good idea that after you manipulate the data, you render them back using elasticsearch immediately,you should try to use the database side build-in functions to retrieve data after you do that, which has no delay