Files
turso/testing/cli_tests
Pekka Enberg 08f1e60e30 Merge 'cli/import: prepare insert once instead of per batch' from Sergei Iarymov
Fixes #2087
But it's assumingly because there's no way to be sure since there's
nothing in the ticket to reproduce.
Speeds up CSV import 2x on average by preparing the insert statement
once instead of doing it per batch. Inspired by SQLite, that's how it
currently goes about it.
Ran it against some ClickBench and TPC-H datasets and here's the
numbers:
- TPC-H orders.csv, 1.5m rows / 9 cols: from 5.17s down to 2.46s
- TPC-H lineitem.csv, 6m rows / 16 cols: 47.8s to 29.7s
- ClickBench hits.csv, 1m rows / 105 cols: 43.8s to 18.6s
There is possible way to make it even faster making it vectorized like
Postgres COPY doing, but I didn't take this route since it looks too
invasive.

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #8470
2026-08-25 17:06:27 +03:00
..
2025-06-20 15:59:03 -03:00
2025-07-03 02:15:08 -03:00
2026-02-22 16:08:16 -05:00
2026-02-27 14:12:38 +01:00
2025-07-03 02:15:08 -03:00