Consolidate structures contain query optimizer's view of catalog statistics

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the CBR codepath, the query engine uses CollectionStatistics in the CollectionInfo struct in src/mongo/db/query/query_planner_params.h. In the join codepath, the query engine uses CatalogStats in src/mongo/db/query/compiler/optimizer/join/catalog_stats.h.

      Currently they cannot be merge because the join codepath does not have access to CollectionInfo, which historically was a find subsystem structure. The join codepath uses MultipleCollectionAccessor as its view of the catalog.

      This ticket tracks work to consolidate these structures/files.

            Assignee:
            Unassigned
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: