Quantcast
Channel: Active questions tagged mongodb-atlas - Stack Overflow
Viewing all articles
Browse latest Browse all 271

How to keep the write operation incomplete until the atlas search has finished updating the new/updated documents

$
0
0

I’m currently facing a challenge with my application where, after adding or updating an item, the changes are not immediately reflected when redirecting to the list page. I’ve noticed that introducing a delay of 1000ms seems to temporarily solve the issue, but it’s not a sustainable solution.

I suspect the problem lies in the synchronization between write operations and Atlas Search index updates. I’ve explored using the Atlas API and the MongoDB Node.js driver to check the indexing status, but so far, it hasn’t provided a reliable solution.

Have any of you encountered a similar issue or have suggestions on how to ensure that the write operation only completes when the Atlas Search index has finished updating? I’d greatly appreciate any insights, alternative approaches, or best practices you might have in dealing with this scenario.

Thank you in advance for your valuable input!


Viewing all articles
Browse latest Browse all 271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>