About create sharding collections

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.9
    • Component/s: Admin, Sharding, Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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?

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

              Created:
              Updated:
              Resolved: