pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
36.87k stars 5.8k forks source link

Projection pushdown to tikv feature GA #51876

Open yibin87 opened 5 months ago

yibin87 commented 5 months ago

Enhancement

tidb_opt_projection_push_down is introduced by #27029 , and is set 'off' by default, still not GA now. It aimed to improve performance in two sides:

  1. Utilize distributed tikv nodes to perform calculations parallelly
  2. Provide an elegantly way to reduce unused columns which are transformed back to tidb from tikv #44902

However, there are still some basic functionality issues when this feature is set 'on':

Also exposed some existing function behavior inconsistency issues:

And after these functionality issues are fixed, we need to consider the performance impact

Others:

yibin87 commented 5 months ago

/assign @yibin87