Pushing the Limits of the Index API: Building a Columnar Store without a TAM
summary
Builds a columnar store entirely inside standard Postgres heaps by using an Index Access Method plus Custom Scans, implemented in Rust with pgx and shipped as pg_search, integrating Tantivy and DataFusion. Claims concrete wins: single-table top-K and wide select-star queries run up to ~45x faster and joins show ~6.5x improvements in examples by using SIMD-aligned posting-list intersections, late materialization, dynamic filters, delete-bitmaps and visibility-map delayed checks. Notes practical limits: 32-column index cap, tuple-at-a-time APIs, and uncertain parallel-worker semantics; proposes batching and projection hooks as fixes.
AI-written summary · about
chapters (21)
- 0:00Introduction and goals
- 1:52Parade DB architecture overview
- 3:18Why index access method over TAM
- 6:33Multi-layout index design
- 10:04Storage and memory mapping
- 11:29MVCC and delete handling
- 11:50Single-table proven strategies
- 12:32Vectorization in search
- 13:55BlockMax WAND for top K
- 16:53Late materialization technique
- 19:05Dynamic filters and predicate pullup
- 22:13Testing and validation methods
- 25:23Joins and normalization challenges
- 27:06Eager materialization pitfalls
- 28:53Semi-join optimization example
- 34:12Postgres integration challenges
- 37:18Custom scan API limitations
- 39:49Postgres extension ecosystem praise
- 40:51Bitmap index scan alternatives
- 42:38Conclusion and key takeaways
- 43:19Q&A session
