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

sharding server should have multiple shard keys support

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.8.1
    • Sharding

    Description

      I use
      db.runCommand( { shardcollection : "test.users" , key : {_id:1, email : 1 ,address:1}
      to shard

      but only _id can be used to route queries, query only on email and address can not be targeted the server search all the mongod processes.
      so I think is there any possibility to specify more shard keys not used to shard but work as "global indexes", used to route queries
      this will increase the shard performance greatly

      Attachments

        Activity

          People

            Unassigned Unassigned
            dawn davyzhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: