News for hackers. Stuff that matters.
Re:How to find un-indexed queries in MySQL, using tcpdump by Erwin on Wednesday August 19, 2009 @12:12PM (#772982)
Use log_duration in postgresql.conf to log long queries, explain ANALYZE them to find out what they're doing. Sometimes a full table sequential scan is faster than using an index -- e.g. if the index would (according to gathered statistics data) hit 90% of the table anyway.

There are also various other gathered statistics you can look at, e.g. cache hits, index hits etc.

There are no comments on this comment yet.