Skip to content

Comments

Pool read connections in MDSQLiteAdapter#45

Draft
LucDeCaf wants to merge 2 commits intomainfrom
read-connection-pool
Draft

Pool read connections in MDSQLiteAdapter#45
LucDeCaf wants to merge 2 commits intomainfrom
read-connection-pool

Conversation

@LucDeCaf
Copy link
Contributor

TL;DR until I create a better explanation: currently we use an exclusive lock for reading from the database, which is obviously suboptimal. This is an experimental PR to see how difficult it would be to implement a pool of long-lived MDSQLiteConnection objects instead of a single readConnection object.

We could also create a new SqliteConnection object for every request, letting ADO.NET use its internal connection pool, but I haven't yet investigated the potential costs of having to load the PowerSync SQLite extension every time we do a query.

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.

1 participant