[DOCS-1658] In cursor.explain() documentation, define/explain "multi" in the "BtreeCursor <index> multi" Created: 28/Jun/13  Updated: 26/Aug/13  Resolved: 26/Aug/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Stephen Lee Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 33 weeks, 5 days ago

 Description   

The cursor.explain() somtimes shows:

...
{
  "cursor" : "BtreeCursor _key1_1_key2_1 multi",
...

The "multi" attribute at the end of the index doesn't seem to be documented. It refers to multiple ranges being used to scan the _key1_1_key2_1 index.

For example, if the query condition includes "{key1:{$ne:5}}," the query optimizer might choose to search the index for two ranges:

  "indexBounds" : {
    "key1" : [
      [
        {
          "$minElement" : 1
        },
        5
      ],
      [
        5,
        {
          "$maxElement" : 1
        }
      ]
    ],


Generated at Thu Feb 08 07:41:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.