-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Milestone
Description
While cleaning up the benchmarks in ecto_sqlite3, I hit this error due to the benchmarks setup code that used insert_all hitting this limit.
Couple options I can think of:
- Simply list this as a limitation in the documentation
- Have Exqlite detect and avoid this case via intelligent batching
- Bump the limit via a compile time option that SQLite already exposes
FWIW you can see the code that hits this limit by looking at sqlite.c:101742
(3) seems like a reasonable choice. The trade off is mentioned in sqlite.c:
/*
** The maximum value of a ?nnn wildcard that the parser will accept.
** If the value exceeds 32767 then extra space is required for the Expr
** structure. But otherwise, we believe that the number can be as large
** as a signed 32-bit integer can hold.
*/
Metadata
Metadata
Assignees
Labels
No labels