Hi all, running the MeiliSearch reset sync script (reset-meili-sync) on a production DocumentDB instance with ~1.6M messages. The script resets the _meiliIndex flag on all documents so they can be re-indexed into MeiliSearch.
The problem is that there is no database index on the _meiliIndex field, so every query that filters on it does a full collection scan.
We tried this approach hit latency issues at this scale:
- Batched updates (10k/batch), each batch takes ~10 minutes due to the collection scan, making the full reset 15+ hours
Has anyone dealt with a similar issue? Any other approaches the community has found effective?
Thank you in advance