Menu

πŸ“°
0

Reddit - Please wait for verification

MongoDBΒ·/u/Far_Childhood_7829Β·3 days ago
#EUE2SBg2
Reading 0:00
15s threshold

Hey everyone, We're running integration tests against mongodb/mongodb-atlas-local:8.0.4 in GitHub Actions and hitting a painful flakiness/performance problem caused by Atlas Search indexing latency. Looking for anyone who's solved this. Setup - Rails + Mongoid test suite, ~500+ specs that use $search - 9 parallel job matrix on ubuntu-latest, each spins up its own mongodb-atlas-local service container - Ruby polling helper that queries the Atlas Search index every 0.2s until the record appears (up to 15s timeout) Problem After inserting a document, it takes anywhere from 2 to 12+ seconds before it's visible via $search, even on an empty test database with a handful of documents. On local dev (Mac M1/M2) it's consistently under 1 second.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More