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

Investigate reducing cost of cached plan preparation

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • QE 2023-05-15, QE 2023-05-29, QE 2023-06-12, QE 2023-06-26, QE 2023-07-10, QE 2023-07-24, QE 2023-08-07, QE 2023-08-21, QE 2023-09-04, QE 2023-09-18, QE 2023-10-02, QE 2023-10-16, QE 2023-10-30, QE 2023-11-13, QE 2023-11-27, QE 2023-12-11, QE 2023-12-25, QE 2024-01-08, QE 2024-01-22, QE 2024-02-05, QE 2024-02-19

      Currently preparing cached plans involve:

      • cloning of PlanStage tree, including all their arguments, EExpressions, etc.
      • compiling EExpressions
      • preparing and linking slots accessors.

      Investigate if it is possible to reduce that cost, for example by sharing immutable structures (like EExpressions, slot vectors, etc) and compilation results. And if so, estimate the possible performance impact.

        1. patch_perf.svg
          664 kB
        2. sbe_perf.svg
          694 kB

            Assignee:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: