Closed dfabulich closed 9 months ago
Indexes are great for tables with many rows, when you want to find a small subset of those rows. For other cases, they are generally not useful.
Be sure to test the performance before and after adding an index, both with a user who owns many polls and one who owns none. Adding an index may have no effect on performance here, or it may even slow the query down.
Good point. The slow query log is empty. I'll file this if it ever turns up as an actually slow query in the log.
When I log queries and go to
/showuser?id=nufzrftl37o9rw5t
(mathbrush), most of the queries are using indexes, but not this one:analyze
: