pingcap/tidb

Imporve the performance of writing chunks to connection.

開放

#13,052 建立於 2019年10月31日

 (1 則留言) (1 個反應) (0 位負責人)Go (6,186 個分叉)batch import
component/serverhelp wantedtype/enhancementtype/performance

倉庫指標

星標
 (40,090 顆星)
PR 合併指標
 (平均合併 14天 4小時) (30 天內合併 346 個 PR)

描述

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:

貢獻者指南