2022-06-27

SQLite or PostgreSQL? It's Complicated!

A detailed exploration of SQLite vs PostgreSQL performance for a Twilio blog analytics dashboard, featuring comprehensive benchmarking tests on both development and production environments, leading to unexpected findings about database performance under different query loads and concurrency levels.

Original archive.is archive.ph web.archive.org

Log in to get one-click access to archived versions of this article.

read comments on news aggregators:

Related articles

SQLite-on-the-Server Is Misunderstood: Better At Hyper-Scale Than Micro-Scale

SQLite's strengths shine particularly well at scale, offering advantages like dynamic scaling, infinite cheap databases, and global distribution through platforms like Cloudflare Durable Objects and Turso. The SQLite-per-partition approach provides local ACID transactions and efficient I/O, making it a viable alternative to traditional partitioned databases for large-scale deployments.

A comprehensive technical guide explaining the internal mechanisms and subsystems of PostgreSQL database system, covering versions 17 and earlier. The document serves as an educational resource detailing process architecture, query processing, concurrency control, and other crucial database management aspects, authored by Hironobu SUZUKI.

Postgres as a Graph Database: (Ab)using pgRouting

pgRouting, a Postgres extension typically used for geospatial routing, offers versatile graph functionality beyond GIS applications. The extension can handle task scheduling, resource allocation in distributed systems, and power recommendation engines, making it a lightweight alternative to specialized graph databases.

EdgeDB is now Gel and Postgres is the Future | Gel Blog

PostgreSQL's unique position as a truly open-source, advanced relational database with extensive modularity is driving its accelerating adoption across the industry. EdgeDB announces its rebranding as Gel, introducing full SQL support and deeper ecosystem integration while maintaining its role as a PostgreSQL frontend layer enhancement. The platform aims to provide seamless database integration similar to how TypeScript enhances JavaScript.

Build your own SQLite, Part 5: Evaluating queries

A technical guide explores the implementation of a SQLite query evaluator, focusing on SELECT statement execution and database operation fundamentals. The implementation includes setting up a test database, creating a query engine with Operator and Planner components, and establishing a REPL interface for query testing.

Richard Towers | Representing graphs in Postgresql

A detailed exploration of representing and querying graph data structures in PostgreSQL using nodes and edges tables, demonstrated through Lord of the Rings character relationships. The solution showcases how to implement complex relationship queries using recursive CTEs and parameterized statements for flexible graph traversal.

Siren Call of SQLite on the Server

An analysis of using SQLite in server-side production environments reveals that while technically capable, it introduces unnecessary complexity compared to traditional client-server databases. Despite SQLite's reliability and performance, implementing features like high availability and backups requires additional infrastructure, potentially negating its main benefits.

Top-level Files of tip

An open-source bookmarking server built with Common Lisp and PostgreSQL, offering multi-account support and minimal JavaScript requirements. The project prioritizes portability and simplicity, running efficiently on OpenBSD while maintaining core security features through bcrypt password storage and optional captcha protection.