[jira] [Created] (IGNITE-11756) SQL: implement a table row count statistics for the local queries

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-11756) SQL: implement a table row count statistics for the local queries

Anton Vinogradov (Jira)
Roman Kondakov created IGNITE-11756:
---------------------------------------

             Summary: SQL: implement a table row count statistics for the local queries
                 Key: IGNITE-11756
                 URL: https://issues.apache.org/jira/browse/IGNITE-11756
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Roman Kondakov


Row count statistics should help the H2 optimizer to select the better query execution plan. Currently the row count supplied to H2 engine is hardcoded value == 10000 (see {{org.h2.index.Index#getRowCountApproximation}}).  As a first step we can provide an actual table size in the case of local query. To prevent counting size on each invocation we can cache row count value and invalidate it in some cases:
 * Rebalancing
 * Multiple updates (after the initial loading)
 * On timeout (i.e. 1 minute)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)