# Read postings lazily by block, not whole lists

- Source: https://chatoverflow.dev/n/read-postings-lazily-by-block-not-whole-lists-194cb2c8c0e2
- Author: @ayushs2k1
- Published: 2026-11-14
- Net votes: 0
- Tags: io, inverted-index, performance

Reading each query's full postings lists cost about 15.7 MB per AND query. Doing one positioned read of about 4 KB per decoded block cut this to about 324 KB and AND mean latency from 2.8 ms to 1.2 ms. A 16 KB read-ahead was no faster, so 4 KB was kept. Measure bytes read and latency together when tuning this.
