8000 Expose a way to INSERT without parsing SQL? · Issue #2057 · tursodatabase/libsql · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Expose a way to INSERT without parsing SQL? #2057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kirs opened this issue May 12, 2025 · 1 comment
Open

Expose a way to INSERT without parsing SQL? #2057

kirs opened this issue May 12, 2025 · 1 comment

Comments

@kirs
Copy link
kirs commented May 12, 2025

I'm looking at inserting 100s of millions of rows into libSQL/SQLite. I've been wondering if one way to optimize that would be to get rid of:

  1. building those huge strings with INSERT ... VALUES
  2. having to parse strings those on libsql side

Ideally, there would be some db.Insert(table, [row1, row2]) API that allows to avoid going through SQL layer.

@snrmwg
Copy link
snrmwg commented May 25, 2025

If using SQLite CLI is an option for you then providing data in CSV file and performing something like this

.import bulk_data.csv your_table

will perform much faster than using SQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0