# Balance::StatsController#index

- **Period:** 27 Jun 01:39 UTC – 27 Jun 04:40 UTC
- **Throughput**: 0.18 / min
- **Average:** 99.5 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| view | app/views/balance/stats/index.turbo_stream.slim | 37.09 | 1.0 | 37.30% |  |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 22.16 | 0.78 | 17.41% | `POST influxdb` |
| gc | ruby/gc.c | 11.69 | 0.91 | 10.65% | `GC.start` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 3.81 | 1.0 | 3.83% | `HttpAcceptLanguage::Middleware` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 17.14 | 0.22 | 3.77% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| redis | app/controllers/balance/stats_controller.rb:95 | 16.86 | 0.22 | 3.71% | `get` |
| code | app/controllers/balance/stats_controller.rb:7 | 3.31 | 1.0 | 3.33% | `Balance::StatsController#index` |
| redis | app/lib/influx/poll_interval.rb:45 | 3.0 | 0.78 | 2.36% | `set` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 2.22 | 1.0 | 2.23% | `pipeline` |
| redis | app/lib/sensor/query/power_peak.rb:35 | 2.44 | 0.78 | 1.92% | `get` |
| redis | app/lib/influx/poll_interval.rb:76 | 2.44 | 0.78 | 1.92% | `get` |
| sql | app/models/summary.rb:67 | 8.14 | 0.22 | 1.79% | `SELECT gs.date FROM generate_series(?, ?, ?::interval) AS gs(date) LEFT JOIN su…` |
| redis | app/controllers/balance/stats_controller.rb:52 | 2.24 | 0.78 | 1.76% | `get` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/Balance::StatsController%23index?range=2026-06-27+01%3A39%3A59+UTC..2026-06-27+04%3A40%3A34+UTC)