[SERVER-12180] Clean up dependency tracking in agg Created: 20/Dec/13  Updated: 11/Jul/16  Resolved: 21/Jan/14

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

This was a TODO following SERVER-11675 (text in agg).



 Comments   
Comment by Githook User [ 21/Jan/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-12180 fix inconsistent use of struct/class
Branch: master
https://github.com/mongodb/mongo/commit/1299b1166ebc0856775566a4b7edd7b02b695734

Comment by Githook User [ 21/Jan/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-12180 Clean up dependency tracking code

Behavior changes (none effect semantics of pipeline, just implementation):

  • We now track what we know about fields and metadata separately. This allows
    us to prove that we won't need the text score if we see a $group or $out.
  • If we don't need any fields from the source document we now use a projection
    that will return an empty document, or just the text score if it is needed.
    We used to use {_id: 0} which returned all other fields.

Code organization changes:

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