Skip to content

Sqlite store: create with pool, use acquire instead of mutex#75

Merged
beeinger merged 2 commits intoHerodotusDev:developfrom
m-kus:imp/sqlite-store-config
Oct 2, 2025
Merged

Sqlite store: create with pool, use acquire instead of mutex#75
beeinger merged 2 commits intoHerodotusDev:developfrom
m-kus:imp/sqlite-store-config

Conversation

@m-kus
Copy link
Copy Markdown
Contributor

@m-kus m-kus commented Sep 30, 2025

Pool has its own thread-safety mechanism implemented, which we can reuse.
It's particularly useful when creating multiple concurrent read-only connections (now possible with the new with_pool constructor).
Note the atomic_set_many — this is a backward compatibility flag to ensure the same behaviour.

@m-kus m-kus force-pushed the imp/sqlite-store-config branch 2 times, most recently from 1863bfd to 18735be Compare September 30, 2025 12:19
@m-kus m-kus changed the title Sqlite store: create with options, use pool acquire Sqlite store: create with pool, use acquire instead of mutex Sep 30, 2025
@m-kus m-kus force-pushed the imp/sqlite-store-config branch from 18735be to e99b5b1 Compare September 30, 2025 12:21
@beeinger beeinger merged commit d4d4dc1 into HerodotusDev:develop Oct 2, 2025
1 check passed
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