Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

goto-bus-stop
Copy link
Member

@goto-bus-stop goto-bus-stop commented Dec 1, 2024

June 2025 update: This is probably not necessary for now. Synchronous SQLite with good indexes shouldn't really be an issue for a typical small-scale server. It's not great that it blocks the main thread, but it's not the most urgent problem either.


In particular:

  • Support async transactions
  • Connection pooling (async transactions requires using other connections for other requests)
  • Reusing most recent prepared statement especially for repeated inserts

This has one big downside for the tests: connection pooling prevents using a named in-memory store with better-sqlite3.

To explore:

  • Can we use libsql like this? AFAICT the official libsql dialect for kysely is outdated and has serious bugs.
  • Execute queries on worker threads to allow JS to run while queries are in progress.

@goto-bus-stop goto-bus-stop marked this pull request as draft June 25, 2025 19: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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.