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

The definition for sh.splitAt() is not correct

    XMLWordPrintableJSON

Details

    Description

      http://docs.mongodb.org/manual/reference/method/sh.splitAt/

      Currently the definition for sh.splitAt() is:

      Splits the chunk containing the document specified by the query as if that document were at the “middle” of the collection, even if the specified document is not the actual median of the collection.

      This command doesn't split the chunk at the "middle" of the collection. It is used to split the chunk in a specific point specified by the query.

      Also, the description for the "query" parameter is:

      query document A query to identify a document in a specific chunk. Typically specify the shard key for a document as the query.

      This is not true. The query is to identify the split point in a specific chunk range, and it must use the shard key as the query.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            linda.qin@mongodb.com Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 1 week, 2 days ago