pingcap/tidb

Accelerate FindColumn when table has huge number of columns

Open

#11 151 ouverte le 9 juil. 2019

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Go (6 186 forks)batch import
help wantedtype/enhancementtype/performance

Métriques du dépôt

Stars
 (40 090 stars)
Métriques de merge PR
 (Merge moyen 14j 4h) (346 PRs mergées en 30 j)

Description

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

Guide contributeur