You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed today that when I INSERT with executeMany, there are multiple insert queries instead of a single query. SQLite supports lists of values to insert mutliple rows in a single query. For example:
> create table test (a integer, b integer);
>insert into test (a, b) values (1, 2), (3, 4);
>select*from test;
a b
---------- ----------1234
executeMany does this:
>insert into test (a, b) values (1, 2);
>insert into test (a, b) values (3, 4);
which of course is less efficient than doing it all in one query.
postgresql-simple seems to know about this, so I was surprised to see sqlite-simple emit multiple insert queries.
The text was updated successfully, but these errors were encountered:
Hello!
I noticed today that when I
INSERT
withexecuteMany
, there are multiple insert queries instead of a single query. SQLite supports lists of values to insert mutliple rows in a single query. For example:executeMany
does this:which of course is less efficient than doing it all in one query.
postgresql-simple
seems to know about this, so I was surprised to seesqlite-simple
emit multiple insert queries.The text was updated successfully, but these errors were encountered: