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

Allow shard key to be prefix of multikey index

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding EMEA
    • Sharding 2019-08-26

      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.

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            renato.riccio@mongodb.com Renato Riccio
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: