Reset Phoenix LiveDashboard Ecto Stats
Phoenix LiveDashboard has a way to display Ecto stats like cache hit, unused indexes and outlier queries. Under the hood it's using the ecto_psql_extras library which depends on the pg_stat_statements extension.
If you improve your queries and want to reset the stats then connect to your database with psql
and run:
select pg_stat_statements_reset();
Tweet