distinct cheat with indexes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.5
    • Affects Version/s: None
    • Component/s: Performance
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Right now distinct will pull data out of indexes, but will scan the entire thing.
      Can skip whole regions where the key is the same

      Correct way to implement is probably adding a method to a btree bucket like

      getDisinctKeys( int keyOffset )

            Assignee:
            hari.khalsa@10gen.com
            Reporter:
            Eliot Horowitz (Inactive)
            Votes:
            31 Vote for this issue
            Watchers:
            35 Start watching this issue

              Created:
              Updated:
              Resolved: