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

Text stage shouldn't do fetching if unneeded

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Querying
    • Query Integration

    Description

      Currently the text stage always fetches the document: https://github.com/mongodb/mongo/blob/r2.8.0-rc1/src/mongo/db/exec/text.cpp#L291.

      This can be a significant amount of wasted work if just doing a count of documents matching a query. A WT test runs 4x faster with that line commented out (obviously not a real solution but a reasonable model for how one would perform).

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            mathias@mongodb.com Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: