database-optimization

2 articles
sort: new top best
clear filter
0 5/10

This article explains why Postgres struggles with Top K queries (retrieving K best rows with filtering and sorting) and how search databases like ParadeDB use fundamentally different indexing approaches—single compound indexes instead of multiple tailored B-trees—to handle diverse query shapes and text search efficiently.

ParadeDB Postgres Lucene Tantivy
paradedb.com · philippemnoel · 6 days ago · details · hn
0 7/10

A detailed technical analysis of an LLM-generated SQLite reimplementation in Rust that demonstrates critical performance failures (~20,000x slower) despite appearing correct. The article identifies two root-cause bugs: a missing INTEGER PRIMARY KEY optimization that forces full table scans instead of O(log n) B-tree lookups, and unnecessary fsync calls on every statement, alongside compound inefficiencies in AST caching and memory allocation patterns.

SQLite Rust Turso libsql METR GitClear Fjall
blog.katanaquant.com · dnw · 8 days ago · details · hn