-
Notifications
You must be signed in to change notification settings - Fork 12
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
Unable to run executemany on SQLite.DB connection #41
Comments
Is this related ? |
I installed the current code (JuliaDatabases/SQLite.jl@9724a17) for SQLite.jl (v.1.4.0) and tried successfully with a slightly updated code:
But according to JuliaDatabases/SQLite.jl#246 (comment) the |
I am having this same issue and would like to use the functionality added at JuliaDatabases/SQLite.jl@9724a17 . @quinnj Is SQLite 1.4.0 stable yet? Which version of SQLite should we use so that we can use ^^that^^ without getting the Thanks! |
Dear future reader, I decided to db = SQLite.DB("db.sqlite")
DBInterface.execute(db, "CREATE TABLE DATA (ID INTEGER, Name TEXT)")
stmt = SQLite.Stmt(db, "INSERT INTO DATA (ID, Name) VALUES (:my_id, :name)")
DBInterface.executemany(stmt, (my_id=[1,2,3], name=["A","B","C"])) |
In a performant way ? Could you post some speed results ? rows/seconds ? |
30,000 inserts/second. 10 columns of (generally quite short) text per row. |
(348,000 inserts in 10.5 seconds.) |
Thank you very much for the info ! |
@jg-at-work Sure! Were you able to insert even faster with your lower-level performance hacks? Hopefully they're not necessary anymore! (Those benchmarks are from my laptop, FYI, with an NVMe SSD.) |
When trying to run executemany on an DB connection made with SQLite.jl, it fails.
I am new to Julia, I do not understand exactly the issue yet.
Somehow the statement (stmt) is of the wrong type. maybe it is an issue within SQLite.js, but I do not know.
Iam using DBInterface v2.5.0 and SQLite v1.3.0
Here is a minimum working example
The error happens in the last line.
Output:
This is the line :
DBInterface.jl/src/DBInterface.jl
Line 193 in a2734ab
The text was updated successfully, but these errors were encountered: