This is probably not helpful, but:
IMO, fixing bad queries is easy... the crazy thing is, waiting for customers to complain before you go looking.
In other words - IMO, you should have measurements in your code (eg. VST's, time measurements, AppServer logs, etc.) and alerting systems to...