Well, the query record, the type of problem and the number of occurrences will quickly tell you where it is best to spend the effort, with select troubletype,count(*) from database group by troubletype . Then, it may be drilled into the most common queries causing the problem.
If requests are generated ad hoc, then perhaps you will get some useful, debugged requests for users. Thus, fewer mistakes are made.
source share