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

sql: enable shared cache #2356

Merged
merged 1 commit into from
Apr 17, 2021
Merged

sql: enable shared cache #2356

merged 1 commit into from
Apr 17, 2021

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Apr 17, 2021

This is based on #2355, which should be merged in first.

Fixes #2353

I am not sure about safety of PRAGMA read_uncommitted=1;, but it is suggested by https://sqlite.org/sharedcache.html and I get "table locked" errors otherwise. I think it should not cause significant issues because we usually don't commit many rows in a single transaction and don't rely on them being either written or not at the same time during reading.

@link2xt link2xt requested a review from r10s April 17, 2021 03:42
@link2xt link2xt mentioned this pull request Apr 17, 2021
@link2xt link2xt marked this pull request as ready for review April 17, 2021 19:37
@link2xt
Copy link
Collaborator Author

link2xt commented Apr 17, 2021

Benchmark of opening the database and searching for "hello" 10 times in my Desktop database:
1

Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm and make sense to me :)

@r10s
Copy link
Member

r10s commented Apr 17, 2021

nice graphics!

@link2xt link2xt merged commit 9a34fe5 into master Apr 17, 2021
@link2xt link2xt deleted the sharedcache branch April 17, 2021 20:47
@link2xt link2xt mentioned this pull request Apr 18, 2021
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.

performance degradation
2 participants