pingcap/tidb

Accelerate FindColumn when table has huge number of columns

Open

#11.151 aperta il 9 lug 2019

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Go (6186 fork)batch import
help wantedtype/enhancementtype/performance

Metriche repository

Star
 (40.090 star)
Metriche merge PR
 (Merge medio 14g 4h) (346 PR mergiate in 30 g)

Descrizione

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

Guida contributor