Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1361

Query on ShardKey vs _id

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • None

    Description

      Hello Team,

      I have a quick doubt on Shard key. When we have a database set up with Shard clusters, which is the better way to access the documents from the database. Is it better accessing through _id or through shard key? I would like know about the pros and cons of the both the method. Any help here is much appreciated.

      Thanks in Advance.

      Attachments

        Activity

          People

            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            ChandranMuthu Chandran Muthu [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: