-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Index Maintenance
-
None
-
Query
I'm currently adding some sparse indexes to big collections for which I'm certain the indexes matches no document.
Creation of the index takes forever (because it iterates over every single document of the collections, blocking any operation meanwhile) while it could take just a few ms.
Maybe something like {{
{ sparse: true,skipSparseIndexCreation: true } }}
Also, this is probably trivial to do.
- duplicates
-
SERVER-2366 Speed up creation of (don't populate) index on unused field for sparse index
- Closed