finished this round of schema improvements
This commit is contained in:
@@ -8,6 +8,10 @@ http://okigiveup.net/what-postgresql-tells-you-about-its-performance/
|
||||
Useful queries to indicate how indexes are being used in postgresql
|
||||
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||
|
||||
2020-05-21 THIS SUPERSEDES BELOW
|
||||
HOW TO FIND SHITTY INDEXES: https://gist.github.com/jberkus/6b1bcaf7724dfc2a54f3
|
||||
|
||||
==-=-=-
|
||||
OK: this is the best query to use to find non used indexes
|
||||
Run it and look for any indexes that are *not* primary keys (name ends in pkey, want ones that end in idx which are mine)
|
||||
that have zero in idx_scan, that means they are completely unused (if a lot of full test runs that excercise all routes and features have happened prior to checking)
|
||||
|
||||
Reference in New Issue
Block a user