# Heatpump::StatsController#index

- **Period:** 13 May 09:28 UTC – 13 May 16:19 UTC
- **Throughput**: 0.03 / min
- **Average:** 71.4 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 23.64 | 0.85 | 28.02% | `POST influxdb` |
| view | app/views/heatpump/stats/index.turbo_stream.slim | 13.92 | 1.0 | 19.50% |  |
| redis | app/lib/influx/poll_interval.rb:45 | 9.82 | 0.85 | 11.64% | `set` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 4.08 | 1.0 | 5.71% | `pipeline` |
| code | app/controllers/heatpump/stats_controller.rb:7 | 3.92 | 1.0 | 5.50% | `Heatpump::StatsController#index` |
| gc | ruby/gc.c | 3.77 | 1.0 | 5.28% | `GC.start` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 3.62 | 1.0 | 5.06% | `HttpAcceptLanguage::Middleware` |
| sql | app/models/summary.rb:59 | 20.0 | 0.15 | 4.31% | `SELECT gs.date FROM generate_series(?, ?, ?::interval) AS gs(date) LEFT JOIN su…` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 15.5 | 0.15 | 3.34% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 1.54 | 1.0 | 2.16% | `ActionDispatch::Static` |
| redis | app/lib/influx/poll_interval.rb:76 | 1.0 | 0.85 | 1.19% | `get` |
| redis | app/lib/sensor/definitions/base.rb:39 | 0.85 | 1.0 | 1.19% | `get` |
| rack | /usr/local/bundle/gems/railties-8.1.3/lib/rails/rack/logger.rb:20 | 0.85 | 1.0 | 1.19% | `Rails::Rack::Logger` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/Heatpump::StatsController%23index?range=2026-05-13+09%3A28%3A00+UTC..2026-05-13+16%3A19%3A35+UTC)