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

Sorting not using index properly with 3 field compound index

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 1.6.5
    • None
    • None
    • OSX
    • ALL

    Description

      I am getting a "too much data for sort() with no index. add an index or specify a smaller limit" error when trying to query on 2 fields and sort on a third, even when using hint and an index exists that I think should work.

      Full output of my .stats() and the queries in question can be found at: http://pastie.org/1417475

      Attachments

        Activity

          People

            Unassigned Unassigned
            rcahearn Ryan Ahearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: