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

Analyze and reduce compilation time of query and query/ce, query/cost_based_ranker, query/stats test binaries

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2025-02-17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The initial analysis (here) has shown that sampling_estimator_test, generated_histograms_test, maxdiff_histogram_test, histogram_estimation_test have the longest compilation time in the query/ce folder

      Test name Compilation time (s)
      histogram_estimation_test 37.17
      maxdiff_histogram_test 34.631
      generated_histograms_test 35.192
      sampling_estimator_test 58.434

      Similarly, cost_based_ranker_test has the longest compilation time in the query/cost_based_ranker folder (38.399 s). This makes these tests prime candidates for compilation time analysis, and splitting.

      Finally, in the query/stats the following tests have comparably higher compilation times:

      Test name Compilation time (s)
      stats_cache_test 35.878
      stats_path_test 34.376
      type_collision_test 34.761
      type_count_test 36.352
      ce_histogram_test 34.503
      value_utils_test 35.782
      stats_cache_loader_test 55.531

      The deliverable of this ticket should include also a table with before and after compilation time analysis of the binaries altered.

            Assignee:
            chii.huang@mongodb.com Chi-I Huang
            Reporter:
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: