Counting the florbs: BRIN indexes, rollup tables, and a 90-second query

A story about counting fifteen million of something, fast. What a BRIN index is and why it’s great, why it failed at volume, and how a daily rollup table fixed it, proven with query plans.