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

[Spike] Investigate if replacing regex with string comparison improves filtering performance in change stream pipeline

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2024-11-11, QE 2024-11-25

      Given the current usage of regular expressions to match collection names in the aggregation pipeline, we should investigate whether switching to string or substring comparison might yield better performance. Regular expressions are known to be computationally intensive, especially when used repeatedly across multiple conditions.

        1. cs_stage_match.js
          6 kB
        2. plain_match.js
          3 kB

            Assignee:
            sebastien.mendez@mongodb.com Sebastien Mendez
            Reporter:
            lee.maguire@mongodb.com Lee Maguire
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: