PlanetScalePatrick Reynolds2 min readintermediate
Introducing Lead: TIN-compatible full-text search for CI
Summary
Lead is a Postgres full‑text search extension compatible with TIN, intended for CI and testing environments. It offers the same SQL and TINQL features but runs as a full table scan, making it orders of magnitude slower, so it’s only practical for small datasets.
- Lead mirrors TIN's SQL and TINQL API, so existing code works unchanged.
- All writes (CREATE INDEX, INSERT, UPDATE, DELETE) are ACID‑compliant and visible within the same transaction.
- Searches are full table scans; a 8 GB Wikipedia index takes ~4 min per query versus TIN's 2 ms.
- Suitable for CI, dev, and staging where tables stay under a few megabytes.
Teams that need deterministic search behavior in CI pipelines should use Lead instead of TIN.
6/10



