Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4119

add shell method to bring index to ram

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Shell
    • None

    Description

      people often ask how to do it, and they always get slightly wrong answers.
      We can add method that just wraps:
      db.foo.find( {} ,

      { <index keys> , _id : 0 }

      ).hint( <index keys> ).count()

      Attachments

        Activity

          People

            Unassigned Unassigned
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: