You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/05/07 08:24:14 UTC
[GitHub] [incubator-doris] HappenLee opened a new issue #5764: [Performance] Speed up the bulk data load insert to ODBC table
HappenLee opened a new issue #5764:
URL: https://github.com/apache/incubator-doris/issues/5764
## Motivation
Currently, Doris support insert data to External Table of ODBC table.
but it's too slow to wait time write to External Table of ODBC table, So we should speed up it to make it more useful.
## Implementation
### 1. Batch Insert
Now, not only ODBC table or MySQL table insert data to External Table tuple by tuple, which cause too many rpc between Doris and RDMS. If we use Batch insert, which will speed up the bulk data load of ODBC table, **but there need some memory to buffer the intermediate data.**
After change the insert row by one insert stmt to many row by one insert stmt,insert 6W5 rows tuple to ODBC table
| | one tuple | batch tuple |
| ---- | ---- | ---- |
| ResultSendTime | 1min52s | 2s482ms |
### 2 More Effective Serialization Of Insert Stmt
like issue#5554
use `fmt` to replace `stringstream`, insert 6W5 rows tuple to ODBC table
| | stringstream | fmt |
| ---- | ---- | ---- |
| TupleConvertTime | 345ms | 160ms |
Speed Up 2x
### 3. More Profile
Add thress new profile couter for `ODBC_TABLE_SINK`
- ResultSendTime: rpc procss use in odbc driver
- TupleConvertTime: insert stmt serialization
- NumSentRows: num of rows process by `ODBC_TABLE_SINK`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] morningman closed issue #5764: [Performance] Speed up the bulk data load insert to ODBC table
Posted by GitBox <gi...@apache.org>.
morningman closed issue #5764:
URL: https://github.com/apache/incubator-doris/issues/5764
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org