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

About create sharding collections

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.9
    • Admin, Sharding, Shell
    • None

    Description

      Is there anyway that mongodb don't create collectioins immedicately after shard collections? After I shard collections, It don't create the collection immedicately until a record is inserted into this collectioin.
      Once I use mongo shell "sh.shardCollection('test.users',

      {userId: 'hashed'}

      )", it will create a collections in database 'test', is there anyway to prevent it?

      Attachments

        Activity

          People

            Unassigned Unassigned
            dnviyth Dnv.IytH
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: