Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6313

Emphasize that dataSize is an internal diagnostic command, and/or explain optional range args better.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      In my understanding the dataSize command uses min and max args that work like the $min and $max query operators, rather than the more flexible $gte and $lt operators. So it needs to also have an index identified (via the keyPattern arg) and the values in min and max must be compatible with that. Also if a { "mykeyfieldname": "hashed" } index is used the min and max args must be the hashed values.

      All of the above is good for the sharding operations that it was created for, but it's confusing for users trying to fiddle with it on their own. I suggest we do more to highlight that it's an internal command; it's use is aligned with the shard chunk management code, and that using with hashed indexes is not possible unless you can provide the hashed values.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            akira.kurogane Akira Kurogane
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 15 weeks ago