-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Storage Execution
In cases where we drop unfinished index builds including _id, we rebuild the _id index for collections as a part of startup. If the node then undergoes initial sync, we end up dropping the index and rebuilding it again. We should avoid duplicating the index build effort from building in startup, dropping in initial sync, and possibly building it again in initial sync. We could detect needing to enable this optimization when retrying failed initial syncs.