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

Allow shard key to be prefix of multikey index

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • Sharding EMEA
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: