Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23188

Sql. Incorporate table size estimation in query optimizer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • sql

    Description

      As of now, the size of every table in cluster is hardcoded to 10k rows, which prevents cost-based planner from providing best plan.

      In IGNITE-22619 method returning estimated size of a particular table has been introduced. Sql engine may take an advantage of this method in order to improve quality of returned plans.

      Let's incorporate proper table size estimation in query optimization pipeline. Note: call to org.apache.ignite.internal.table.InternalTable#estimatedSize results in distributed call to primary replicas of all partitions of the table, those it's better to throttle it. Also, table size estimation must return the same number of rows within a single optimization session.

      Attachments

        Issue Links

          Activity

            People

              jooger Iurii Gerzhedovich
              korlov Konstantin Orlov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m