• Type: Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • QE 2023-05-15

      In https://github.com/10gen/mongo/blob/master/src/mongo/db/query/sbe_stage_builder.cpp#L128-L139  we end up registering slots for

      $$USER_ROLES

      $$NOW

      $$SEARCH_META

      regardless of whether the query uses these variables or not. These slots aren't free, so if we could skip some/all when they aren't used, we'd win some perf back.

      Likewise setUserRoles() is called whether we use $$USER_ROLES or not, and that also is not free, and would be great to only run if needed.

            Assignee:
            colin.stolley@mongodb.com Colin Stolley
            Reporter:
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: