1
I prefer a generic statistical utility / plugin / application, but don't limit myself as specific might do well too.
I want to see a way by which I can see query statistics for ALL queries.
e.g displaying and sorting or filtering
- all queries ever, or
- all queries made on
- all or specific databases, or
- on specific tables.
- or on specific columns or
- with specific query regex/params; sorting by most made queries count, most long queries in context to time taken
- Some graphical charts would be a plus though. Are there any applications or built in features for such things?
To do that, you'll need to log all queries, then run / parse those logs through some sort of analyzer. This might need a custom build log parser application.
The current server is a high volume server: 500 - 3000 queries per second. The log might be stored to some other HDD.
Questions:
Are there any pre-built applications for such things?
Will it slow down the regular queries? If yes, how much, roughly?
Is there a way to see live queries and do the logging else where, or not do at all and make a live stats report by some other app?
I might not parse the logs with a database specific statistic maker but would just get the log file and make my own parser application and make stats and graphical chart with those logs. May be put those parsed states in another DB with values of queries + time taken to exec + date of query, then generate reports from it later. Is this a good idea?
I didn't notice any "live" way of doing all that without logging it to a file though.
Any pre-build app for
mysql
andpostgres
? That's what I use.Any strategy recommendations on doing all that? I just started to think "how to do performance analysis in detail".