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

Add optimization function to apply $match predicates on change streams events directly to oplog entry

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Minor Change
    • v5.0
    • Query Execution 2021-05-31, Query Execution 2021-06-14, Query Execution 2021-06-28, Query Execution 2021-07-12, Query Execution 2021-07-26, QE 2021-08-09

      This optimization function will recognize when a $match applies directly to the output of a $changeStream and construct the additional filters that make it safe to apply $match predicates to the oplog entry without the risk of filtering out transactions or applyOps events.

      There will also be infrastructure to apply the needed rewrites to fields in the $match so that predicates can be applied for oplog entries, but the rewrites themselves will be implemented in future tickets.

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: