pingcap/tidb

Accelerate FindColumn when table has huge number of columns

Open

#11,151 建立於 2019年7月9日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Go (40,090 star) (6,186 fork)batch import
help wantedtype/enhancementtype/performance

描述

Feature Request

Is your feature request related to a problem? Please describe:

will be frequently called when build query plan or build insert value list.

now it uses linear search to find column info match target name....

when the table has limitation columns it works well...

but when table got many columns (e.g. 200+ columns), upper logic will find 200 columns to do linear search in 200 items.

image

Describe the feature you'd like:

maybe we should adaptively replace a linear search with another method when table has many columns

貢獻者指南