Skip to content

sql: set PRAGMA synchronous=normal - #2382

Merged
link2xt merged 1 commit into
masterfrom
sql-synchronous-normal
Apr 25, 2021
Merged

link2xt merged 1 commit into
masterfrom
sql-synchronous-normal

Conversation

@link2xt

@link2xt link2xt commented Apr 25, 2021

Copy link
Copy Markdown
Collaborator

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

link2xt commented Apr 25, 2021

Copy link
Copy Markdown
Collaborator Author

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

@link2xt

link2xt commented Apr 25, 2021

Copy link
Copy Markdown
Collaborator Author

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