[MCOL-1381] cpimport for batch insert (INSERT INTO SELECT FROM) does not work Created: 2018-05-03 Updated: 2019-07-10 Resolved: 2019-07-10 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.1.3 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Minor |
| Reporter: | Mihaly Hazag | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7.4 |
||
| Description |
|
However the infinidb_use_import_for_batchinsert is ON the INSERT INTO SELECT FROM statement inserts the rows into the table individually with 10 -
SQL statement (changed removing sensitive information):
tail -f /var/log/mariadb/columnstore/debug.log (changed removing the sensitive information)
|
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-05-03 ] | |||||||
|
I suspect the problem is that you are executing the insert...select as part of a transaction. If you have autocommit turned off or start a transaction before the insert...select we cannot use the cpimport method because we need to record undo log entries just in case you rollback the transaction. This requires disk syncs for every entry in every column which is much slower. | |||||||
| Comment by Mihaly Hazag [ 2018-05-03 ] | |||||||
|
I did not use the INSERT INTO ... SELECT in transaction and the autocommit was set ON. The "COMMIT" commands you can see in the debug.log were sent by the system.
|