# Balance::StatsController#index

- **Period:** 27 Jun 09:45 UTC – 27 Jun 14:23 UTC
- **Throughput**: 0.33 / min
- **Average:** 96.2 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| view | app/views/balance/stats/index.turbo_stream.slim | 29.29 | 1.0 | 30.45% |  |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 39.58 | 0.53 | 21.71% | `POST influxdb` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 20.67 | 0.47 | 10.16% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| gc | ruby/gc.c | 9.49 | 0.91 | 9.00% | `GC.start` |
| sql | app/models/summary.rb:67 | 9.07 | 0.47 | 4.46% | `SELECT gs.date FROM generate_series(?, ?, ?::interval) AS gs(date) LEFT JOIN su…` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 2.89 | 1.0 | 3.00% | `pipeline` |
| redis | app/controllers/balance/stats_controller.rb:95 | 5.16 | 0.47 | 2.54% | `get` |
| code | app/controllers/balance/stats_controller.rb:7 | 2.27 | 1.0 | 2.37% | `Balance::StatsController#index` |
| redis | app/lib/influx/poll_interval.rb:45 | 4.23 | 0.53 | 2.32% | `set` |
| redis | app/lib/influx/poll_interval.rb:76 | 3.19 | 0.53 | 1.75% | `get` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 1.63 | 1.0 | 1.69% | `HttpAcceptLanguage::Middleware` |
| redis | app/controllers/balance/stats_controller.rb:52 | 3.06 | 0.53 | 1.68% | `get` |
| redis | app/lib/sensor/query/power_peak.rb:35 | 2.79 | 0.53 | 1.53% | `get` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 1.36 | 1.0 | 1.42% | `ActionDispatch::Static` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/Balance::StatsController%23index?range=2026-06-27+09%3A45%3A13+UTC..2026-06-27+14%3A23%3A13+UTC)