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

Avoid re-parsing query in CanonicalQuery::canonicalize

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QO 2023-06-12

      There's a 'constructor' (static method returning a CanonicalQuery) that takes in a pre-existing CanonicalQuery. In SERVER-76042 we accidentally made a change to re-parse this query. This is obviously not great for performance, but we noticed it because it actually prevents using it with 'special features' like $text which may have been acceptable to parse when the original CanonicalQuery was constructed, but are no longer.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: