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

Push down more stages to shards in sharded $search

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      We have special logic for determining a search pipeline's "deferred" split point to divide the user pipeline into the shards and merging pipeline. The logic relies on the "preservesOrderAndMetadata" stage constraints, but we never populated that field for any stages other than idLookup. We should populate that field for some stages (at least, $project, $match, $limit) so those stages can be pushed to shards.

      We'll need to do thorough testing to make sure we can in fact safely push those stages down without affecting correctness.

            Assignee:
            Unassigned Unassigned
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: