Skip to content
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

Sqlite: Fix deletion for larger numbers of checkpoints/transactions #360

Merged
merged 2 commits into from
Jun 4, 2019

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Jun 4, 2019

Relates to #154.
Base branch is #341 , so that needs to be merged first.

Overview

Any instance of deleteWhere and <-. together is potentially a place where there will be too many variables in the SQL statement.

This removes those instances and replaces them with batched deletes (deleteMany), or where that's not possible, a delete from a join.

Comments

  • TODO: regression test

rvl added 2 commits June 4, 2019 22:43
It would have exploded if there were more than 999 TxMeta or
PendingTx.

I tried Esqueleto and it can't do this query. Actually, it could
express the query, but the generated SQL was invalid. And the code
looked just as bad as raw SQL.
@rvl rvl self-assigned this Jun 4, 2019
@KtorZ KtorZ merged commit 8bdf24e into rvl/154/db-bench Jun 4, 2019
@KtorZ KtorZ deleted the rvl/154/fix-deletes branch June 4, 2019 15:07
@KtorZ KtorZ removed this from the SQLite implementation for the DB Layer milestone Jun 5, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants