SQLite on Rails: The how and why of optimal performance

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • litestack

    Anyone who is looking at using SQLIte + Rails should check out the work done by Oldmoe (X/Github) on his Litestack project.

    Here's the intro paragraph: "Litestack is a Ruby gem that provides both Ruby and Ruby on Rails applications an all-in-one solution for web application data infrastructure. It exploits the power and embeddedness of SQLite to deliver a full-fledged SQL database, a fast cache , a robust job queue, a reliable message broker, a full text search engine and a metrics platform all in a single package."

    I'm currently using it on a project and can't say enough good things about it!

    https://github.com/oldmoe/litestack

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • pglite

    Lightweight WASM Postgres with real-time, reactive bindings.

    I'm wondering how would it perform if we can compile https://pglite.dev/ as a native library and use it as an in-process Postgres... I know Node folks already use it as a Wasm module, so it shouldn’t be too tricky?

  • SQLite3

    Ruby bindings for the SQLite3 embedded database

    You can read more discussion here: https://github.com/sparklemotion/sqlite3-ruby/pull/528 and here: https://github.com/digital-fabric/extralite/pull/46 to see how it was validated that simply releases the GVL for every `step` in the SQLite VM majorly hurts single-threaded performance. Finding a middle ground for both single threaded and multi-threaded performance is tricky. In Rails, we know it is multi-threaded because of the connection pool. But the lower level gem is used in many other libraries and tools where it is used in a single threaded environment

  • extralite

    Ruby on SQLite

    You can read more discussion here: https://github.com/sparklemotion/sqlite3-ruby/pull/528 and here: https://github.com/digital-fabric/extralite/pull/46 to see how it was validated that simply releases the GVL for every `step` in the SQLite VM majorly hurts single-threaded performance. Finding a middle ground for both single threaded and multi-threaded performance is tricky. In Rails, we know it is multi-threaded because of the connection pool. But the lower level gem is used in many other libraries and tools where it is used in a single threaded environment

  • chdb

    chDB is an in-process OLAP SQL Engine 🚀 powered by ClickHouse

    Take a look at chDB and clickhouse-local. Clickhouse can do a lot even without running it as a server.

    https://clickhouse.com/docs/en/chdb

    https://clickhouse.com/docs/en/operations/utilities/clickhou...

  • Ruby on Rails

    Ruby on Rails

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Sqlc: Compile SQL to type-safe code

    15 projects | news.ycombinator.com | 8 Sep 2024
  • Local First, Forever

    10 projects | news.ycombinator.com | 25 Jun 2024
  • How to handle migrations in Golang

    5 projects | dev.to | 11 Jun 2024
  • The Advantages of Bun: When to Choose it Over Node.js 🔥

    1 project | dev.to | 13 May 2024
  • SQLite + Rust: Building a CLI Password Vault 🦀

    3 projects | dev.to | 15 Mar 2024

Did you konow that Ruby is
the 12th most popular programming language
based on number of metions?