|
|
|
|
|
by code_biologist
913 days ago
|
|
A database with no indexes is slow. Finding a particular row will require a linear search. The crux is understanding what data access patterns you will have and what indexes / data structures accelerate that access pattern. "Index = fast" is a painfully pernicious untrue meme. It's absolutely true for application tables with queries only touching a few rows. On the other hand, analytics queries touching a high proportion of rows with joins on equality conditions (ie. hash joinable) isn't going to go any faster with an index. I've seen devs shotgun indexes at tables to fix performance (done it myself too) but the real test of index understanding is when that doesn't work. |
|
That's when you bring a BRIN to the table. :-)