Skip to content

Support opening more readers later with the sqlite3_connection_pool #391

Description

@davidmartos96

Hello!
We are in the process of trying to squeeze the performance of our app start. SQLite it's a hard dependency when starting so we are currently waiting for the sqlite_async (Powersync) factory to initialize before showing the interactive UI to the users. At the moment we are comfortable with 5 readers, but that means that on app start we need to wait for the initialization of all the readers in the pool (about 1.3 s on my emulator). If we use 1 reader, time is reduced to 500 ms.
What we were thinking is if there could be a way to open with 1 writer / 1 writer + 1 reader, and then have some way of adding more readers at runtime.
We would open the app as thin as possible and then asynchronously spawn the other readers when the user can interact with the UI.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions