Consecutive query operations conflict because of the refresh interval
We have an application that uses Elasticsearch (OpenSearch to be exact, but the problem should be the same for both). We have a lot of documents (around a million per index), and our application sends write queries to this index (upload, update, delete). Our refresh interval is 30s, which is a big time window. MongoDB is our source of truth, and Elasticsearch is used later for vector search. Whenever a document is updated in Mongo, our app also has to send a query to Elasticsearch to keep it in sync. Let's say we have around 50 queries per second. One document in Mongo is the equivalent of N c
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.