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

Custom freelist handling #57

Open
losfair opened this issue Sep 10, 2022 · 0 comments
Open

Custom freelist handling #57

losfair opened this issue Sep 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@losfair
Copy link
Owner

losfair commented Sep 10, 2022

SQLite manages an on-disk data structure called "freelist". The freelist is used to track free pages in the database.

The head of the freelist is stored in page 0. Each page allocation/release will write to page 0, and conflict with every other concurrent transaction. This is not good for concurrency.

We should emulate a freelist instead.

@losfair losfair added the enhancement New feature or request label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant