Practical Query Analyzer generates HTML reports of query statistics.
Installing PQA is simple. All you have to do is unzip it into any directory of your choice. Then, open a command line window, "cd" into the pqa-1.4 directory, and run it like this: [tom@hal lib]$ ./pqa.rb -file ../sample/pglog_sample.log -normalize -top 5 645 queries (65 unique), longest ran in 0.370524 seconds), parsed in 0.088793 seconds.
The software displays the number of queries, the longest running ones, and queries by type. Additionally, the five most frequent queries will be shown. These parameters can be adjusted based on your preference. Use the following parameters when running the software: "-file" is required and represents the name of the data file to analyze. "-top N" is optional and sets the "Top N queries"; defaults to 10. "-format N" is optional and sets the output format ("text" or "html"); defaults to "text". "-normalize" is optional and removes quoted items and various bits of whitespaces. Lastly, "-logtype" is optional and sets the type of log file: syslog, pglog, or mysql; defaults to pglog.
This release has several improvements, such as fixing a bug that prevented it from being run directly and other internal improvements. If installed via RubyGems, you can run it using "pqa -f file1 [file2, etc.]". Practical Query Analyzer is a reliable software, which is easy to install and provides useful information about database queries, making it an excellent tool for software developers.
Version 1.6: N/A