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

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.