Skip to content

Conversation

@simolus3
Copy link
Contributor

@simolus3 simolus3 commented Jun 23, 2025

This optimizes the crud vtab to:

  1. Instead of preparing statements on BEGIN, prepare them lazily on the first write to the crud vtab in a transaction. This reduces the overhead of that virtual table in unrelated transactions.
  2. In the simple mode, only execute the statement to update $local once.

@simolus3 simolus3 requested a review from rkistner June 23, 2025 16:04
@simolus3 simolus3 changed the title Crud vtab only update local once Crud vtab optimizations Jun 23, 2025
@simolus3 simolus3 merged commit 1e76045 into main Jun 23, 2025
21 checks passed
@simolus3 simolus3 mentioned this pull request Jun 24, 2025
10 tasks
@simolus3 simolus3 deleted the crud-vtab-only-update-local-once branch July 3, 2025 21:01
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.

2 participants