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

Do not check schema version pragma more than once per transaction #370

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

tantaman
Copy link
Collaborator

For #352 -- do not check the schema version pragma more than once per transaction.

~15% increase in speeds across the board. This is needed for the lookaside update since we check the schema pragma more often now. The reason is that we need to re-create crr prepared statements if the database schema changes since columns could have been added or removed from a crr.

We're sensitive to changes in the number of primary keys but.. anything else?

@tantaman tantaman changed the title Do not check schema version pragma more than once per transaciton Do not check schema version pragma more than once per transaction Sep 26, 2023
@tantaman tantaman merged commit a397fd1 into main Sep 26, 2023
9 checks passed
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.

1 participant