Hacker News new | past | comments | ask | show | jobs | submit login

You can probably pre-compute part or all of those aggregates using triggers, and then run those queries in ~200ms or less with a plain B-tree.



Yeah, that's what we did in the part we said "Pretend this is where we stopped" :) We pre-computed a few major dimensions and choose which table to query based on which columns are being requested. BRIN indexes were still a win vs B-tree, though.

We keep being impressed by Postgres--we keep being able to flog it harder and harder instead of moving to something heavier duty.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: