PulseAugur
EN
LIVE 19:01:53

Patent database scales to 5.36M records with SQLite/FTS5 optimizations

A patent lawyer and hobby coder shared insights on scaling a patent database from 3.5 million to 5.36 million records using SQLite and FTS5. Key learnings include the importance of running ANALYZE after bulk loading, the performance penalty of wide rows on updates, and that using AND operators in queries is more efficient than OR for BM25 scoring at this scale. The project aims to integrate AI-generated tags for newly added patent records. AI

IMPACT Provides practical data engineering insights for managing and querying large datasets, relevant for AI applications processing extensive textual information.

RANK_REASON The item details technical learnings about scaling a database and search functionality for a specific application (patent database), rather than a new product release or core AI research.

Read on r/LocalLLaMA →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Patent database scales to 5.36M records with SQLite/FTS5 optimizations

COVERAGE [1]

  1. r/LocalLLaMA TIER_1 English(EN) · /u/Impressive_Tower_550 ·

    Follow-up: what I learned scaling a SQLite/FTS5 patent database from 3.5M to 5.36M records

    <!-- SC_OFF --><div class="md"><p>A few months ago I posted about classifying 3.5M US patents with Nemotron 9B on a single RTX 5090. This is a follow-up on the data-engineering side. Disclosure up front: I'm a patent lawyer who started coding in Dec 2025, and I build and run the …