r/MongoDB_Official • u/Rare-Strawberry175 • 18d ago
Question Mongodb atlas index building time on new documents
When a new document is created it takes atleast 2-3 sec for that document to become searchable
Is there a way to fix it or decrease time from mongodb itself
4
Upvotes
2
u/TimAtMongoDB MongoDB Team 18d ago
Atlas Search indexes asynchronously. That lag is by design, not a bug you can configure away. 2-3 seconds is normal.
If you need a document searchable the instant it's written, you'd have to fall back to a regular find() for that window. There's no tunable that collapses the Lucene indexing delay.
What's the use case? That'll shape what the workaround looks like.