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

cgosqlite: set SQLITE_TEMP_STORE=1 #102

Merged
merged 1 commit into from
May 28, 2024
Merged

cgosqlite: set SQLITE_TEMP_STORE=1 #102

merged 1 commit into from
May 28, 2024

Conversation

raggi
Copy link
Member

@raggi raggi commented May 24, 2024

SQLITE_TEMP_STORE=1 allows PRAGMA temp_store = MEMORY, while keeping temporary files as the default behavior for temporary storage.

This can be used to accelerate some migrations, when building an in-memory temporary btree to use in a later correlated subquery is faster than the query planner would normally do things, for example when optimizing locality or btree operation order.

@bradfitz
Copy link
Member

What's with the compilation error?

SQLITE_TEMP_STORE=1 allows PRAGMA temp_store = MEMORY, while keeping
temporary files as the default behavior for temporary storage.

This can be used to accelerate some migrations, when building an
in-memory temporary btree to use in a later correlated subquery is
faster than the query planner would normally do things, for example when
optimizing locality or btree operation order.
@raggi raggi force-pushed the raggi/enable-memory-temp branch from 3878690 to 5d04b87 Compare May 27, 2024 23:26
@raggi
Copy link
Member Author

raggi commented May 27, 2024

What's with the compilation error?

It's on top of another patch, but didn't need to be, and is no longer.

@raggi raggi changed the base branch from raggi/c-cleanup to main May 27, 2024 23:27
@raggi raggi merged commit 751f54c into main May 28, 2024
2 checks passed
@raggi raggi deleted the raggi/enable-memory-temp branch May 28, 2024 16:44
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