Skip to content
No description or website provided.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
query_explainer
query_extractor
uniqify_sql

README.md

query_extractor extracts all SQL queries from a Rails log file and prints them to stdout.

query_explainer reads SQL queries from stdin, analyzes each of them with EXPLAIN, and prints out those queries that affect more than 10 rows.

Normal usage:

./query_extractor --select-only production.log | ./uniqify_sql | ./query_explainer
Something went wrong with that request. Please try again.