Update on index prefetching
summary
Postgres index scans get asynchronous prefetching built on AIO via a new table‑driven design that introduces AM_get_batch and a read stream, moves visibility checks into the table AM, and uses batched index results to avoid pinning races. Prototype covers B‑tree and hash and reports IO‑bound speedups up to 10x–100x; baseline scans also gain modest CPU-side improvements. Work is functional but carries risks for GiST/SP‑GiST support and heuristic tuning.
AI-written summary · about
chapters (13)
- 0:00Introduction and speakers
- 1:04Project background and acknowledgments
- 7:50First attempts at prefetching
- 11:26Lessons from failed designs
- 13:15Inventor's paradox and redesign
- 16:20Goals for the third design
- 18:47New architectural approach
- 25:15Read stream and prefetching
- 31:00Visibility map and resource management
- 39:31Summary of architectural changes
- 42:21Potential regressions and risks
- 46:39Future improvements and open questions
- 49:54Q&A and closing remarks
