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

Document the getIndexStats() method

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Document the higher-level getIndexStats() method.

      Example command:

      db.animals.getIndexStats(

      {index:"type_1_traits_1"}

      )

      Example output:

      – index "undefined" –
      version 1 | key pattern

      { "type" : 1, "traits" : 1 }

      | storage namespace "test.animals.$type_1_traits_1"
      2 deep, bucket body is 8154 bytes

      bucket count 45513 on average 99.401 % (±0.463 %) full 49.581 % (±4.135 %) bson keys, 49.820 % (±4.275 %) key nodes

      – depth 0 –
      bucket count 1 on average 71.511 % (±0.000 %) full 36.191 % (±0.000 %) bson keys, 35.320 % (±0.000 %) key nodes

      – depth 1 –
      bucket count 180 on average 98.954 % (±5.874 %) full 49.732 % (±5.072 %) bson keys, 49.221 % (±5.161 %) key nodes

      – depth 2 –
      bucket count 45332 on average 99.403 % (±0.245 %) full 49.580 % (±4.130 %) bson keys, 49.823 % (±4.270 %) key nodes

      Attachments

        Activity

          People

            bgrabar Bob Grabar
            bgrabar Bob Grabar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 41 weeks ago