[SERVER-16327] Text stage shouldn't do fetching if unneeded Created: 25/Nov/14  Updated: 28/Dec/23

Status: Backlog
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Mathias Stearn Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 1
Labels: qi-text-search
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-16390 Text stage fetches document twice if ... Closed
Assigned Teams:
Query Integration
Participants:

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


Generated at Thu Feb 08 03:40:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.