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

Allow shard key to be prefix of multikey index

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sprint:
      Sharding 2019-08-26

      Description

      Currently is not possible to use as shard key a prefix of a multikey index.

      For this reason, even if we have as shard key {a:1} and we have already the index {a:1, b:1} that is considered multikey ONLY because the field b is an array, we must have an index on {a:1} or a non multikey index where a is a prefix.

      Allowing to use {a:1, b:1} for sharding will allow to save RAM, space and write overhead.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-sharding Backlog - Sharding Team
              Reporter:
              renato.riccio Renato Riccio
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: