Glean 拾遗
Recent picks

2picks · chronological

08-27

SQLite for Everything: Cut Your Stack Down to One File

In this reply to 'PostgreSQL for Everything', the author makes the case that SQLite can collapse an entire stack into one file and one function call. It covers reusable patterns: using BEGIN IMMEDIATE plus RETURNING to turn a table into a durable work queue; indexing JSON via generated columns so schemaless writes get indexed reads; treating FTS5 as a same-transaction search index; and using sqlite-vec so embeddings, documents, metadata and full-text live in the same file, making hybrid search a JOIN. The article cites SQLite's own '35% Faster Than The Filesystem' benchmark, and claims warm-cache point lookups land around 1 microsecond versus roughly 100 microseconds for a localhost Redis GET. It also names real limits: a single writer, serialized concurrent consumers, and the need to move to PostgreSQL or specialized systems once you hit them. Useful for backend and infrastructure engineers who want concrete arguments for cutting components out of their stack before adding new ones.

joecode.com · 16 min · Cache · Database · Full-Text Search
07-18

Persistent Memory Compression System for Coding Agents Across Sessions

Claude-Mem is a persistent memory plugin for coding agents like Claude Code. It solves the problem of context amnesia between AI coding sessions by automatically capturing all tool-use observations, generating AI-compressed semantic summaries, and injecting relevant context into future sessions. It uses a progressive disclosure retrieval pattern that saves tokens by loading memory details in layers. Featuring an SQLite backend, a Chroma vector database for hybrid search, a real-time web viewer, and MCP-based natural language search tools, it helps developers maintain project continuity across reboots without manual intervention.

github.com · 11 min · Ai-Memory · Claude Code · Memory