pingcap/tidb

Imporve the performance of writing chunks to connection.

Open

#13.052 aperta il 31 ott 2019

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)Go (6186 fork)batch import
component/serverhelp 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:

In https://github.com/pingcap/tidb/blob/7bfa896/server/conn.go#L1269, we have a chunk to write to connection, but we dump a chunk to mysql protocol row by row.

Describe the feature you'd like:

Now we can vectorize dumpBinaryRow and dumpTextRow by converting a chunk to network buffer column by column.

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

Guida contributor