Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14772

Create a way to add an empty sparse index, skipping iteration of the collection

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      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.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            tubededentifrice Vincent
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: