Today I Learned

hashrocket A Hashrocket project

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();
Looking for help? At Hashrocket, we 💜 Elixir! From our many Elixir client projects, to sponsoring the Chicago Elixir Meetup, to the source code for this application, we are invested in this community. Contact us today to talk about your Elixir project.