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

Query on ShardKey vs _id

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

            Assignee:
            gabriel.russell Gabriel Russell
            Reporter:
            ChandranMuthu Chandran Muthu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: