From 17ms to 0.04ms: How to Design the Right SQL Index

What does a good SQL index look like? I seeded Postgres with 1 million comments and measured every indexing decision with EXPLAIN ANALYZE: a 17ms sequential…