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: set PRAGMA synchronous=normal #2382

Merged
merged 1 commit into from
Apr 25, 2021
Merged

sql: set PRAGMA synchronous=normal #2382

merged 1 commit into from
Apr 25, 2021

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Apr 25, 2021

It was set in sqlx code, but not in rusqlite mode.

synchronous=FULL makes benchmark that write to the database a lot slower.

It was set in `sqlx` code, but not in `rusqlite` mode.

synchronous=FULL makes benchmark that write to the database a lot slower.
@link2xt
Copy link
Collaborator Author

link2xt commented Apr 25, 2021

This seems to be the main reason for slowdown in #2380 (comment)

@link2xt
Copy link
Collaborator Author

link2xt commented Apr 25, 2021

Comparison of this branch to latest sqlx code

Create 1 account

1

Create 100 contacts and read it 1000 times

1

Create 500 contacts

1

Search "hello" in my database

1

@link2xt link2xt merged commit eef51f0 into master Apr 25, 2021
@link2xt link2xt deleted the sql-synchronous-normal branch April 25, 2021 20: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