# Balance::StatsController#index

- **Period:** 27 Jun 04:40 UTC – 27 Jun 09:45 UTC
- **Throughput**: 0.45 / min
- **Average:** 76.9 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| view | app/views/balance/stats/index.turbo_stream.slim | 27.72 | 1.0 | 36.05% |  |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 24.01 | 0.79 | 24.62% | `POST influxdb` |
| gc | ruby/gc.c | 6.08 | 0.91 | 7.21% | `GC.start` |
| code | app/controllers/balance/stats_controller.rb:7 | 4.18 | 1.0 | 5.44% | `Balance::StatsController#index` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 2.49 | 1.0 | 3.24% | `pipeline` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 10.17 | 0.21 | 2.80% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 1.79 | 1.0 | 2.33% | `HttpAcceptLanguage::Middleware` |
| redis | app/lib/influx/poll_interval.rb:45 | 2.12 | 0.79 | 2.17% | `set` |
| sql | app/models/summary.rb:67 | 7.55 | 0.21 | 2.08% | `SELECT gs.date FROM generate_series(?, ?, ?::interval) AS gs(date) LEFT JOIN su…` |
| redis | app/lib/influx/poll_interval.rb:76 | 1.49 | 0.79 | 1.53% | `get` |
| redis | app/lib/sensor/query/power_peak.rb:35 | 1.43 | 0.8 | 1.48% | `get` |
| redis | app/controllers/balance/stats_controller.rb:95 | 5.07 | 0.21 | 1.40% | `get` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 1.06 | 1.0 | 1.38% | `ActionDispatch::Static` |
| redis | app/controllers/balance/stats_controller.rb:52 | 1.05 | 0.79 | 1.07% | `get` |

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