add shell method to bring index to ram

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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()

            Assignee:
            Unassigned
            Reporter:
            Antoine Girbal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: