Skip to content

Commit

Permalink
πŸ› FIX: Import archive into large DB (#5740)
Browse files Browse the repository at this point in the history
This commit fixes an issue whereby databases with large amounts of nodes,
caused the `SQLITE_MAX_VARIABLE_NUMBER` (see sqlite.org/limits.html) to be exceeded,
when querying the sqlite archive backend.
This occurred when the `!in` filter value of the query was passed many 1000s of node UUIDs,
so instead now we invert this query, to use `in`,
and batch it into queries with maximum `filter_size` parameters.
  • Loading branch information
chrisjsewell authored Nov 4, 2022
1 parent d1a97a1 commit 899471a
Showing 1 changed file with 129 additions and 76 deletions.
Loading

0 comments on commit 899471a

Please sign in to comment.