heroku / heroku-pg-extras

A heroku plugin for awesome pg:* commands that are also great and fun and super.
MIT License
1.33k stars 102 forks source link

Add mean average query execution time to outliers #162

Closed mble closed 2 years ago

mble commented 6 years ago

This commit adds a mean average of query execution time to the outliers query, hidden behind a flag.

The rationale is that mean average execution time is to provide a quicker way to determine queries that are slow, rather than having to determine the ratio manually. It also provides a needle to move when improving queries that appear on the outliers report.

Hiding this behind a flag means existing output parsers won't break.

mble commented 6 years ago

Tested locally. Slowly gonna get some more improvements in.