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

Update change stream helpers to ensure BSONObj ownership

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • QO 2024-04-15, QO 2024-04-29, QO 2024-05-13, QO 2024-05-27

      The change streams have been implemented assuming that the BSONObj ownership is kept by the MatchExpression.

      To reduce the overheads of copying BSONObj into MatchExpressions, we aim to remove the _backingBSON from the MatchExpression. The MatchExpression will compare against a reference of an already existing BSONObj which survives the query. 

      This ticket will update the design of Stream Helpers:

      i. Match expressions depend on already existing BSONObj.

      ii. Ensure all BSONObj used in MatchExpressions are in scope.

      iii. Simplify where possible the building of MatchExpressions.

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: