# Balance::StatsController#index

- **Period:** 27 Jun 18:11 UTC – 28 Jun 01:07 UTC
- **Throughput**: 0.09 / min
- **Average:** 103.2 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| view | app/views/balance/stats/index.turbo_stream.slim | 31.61 | 1.0 | 30.63% |  |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 49.26 | 0.64 | 30.49% | `POST influxdb` |
| gc | ruby/gc.c | 7.94 | 0.86 | 6.62% | `GC.start` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 12.69 | 0.36 | 4.44% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| redis | app/controllers/balance/stats_controller.rb:52 | 5.96 | 0.64 | 3.69% | `get` |
| redis | app/lib/influx/poll_interval.rb:45 | 4.87 | 0.64 | 3.01% | `set` |
| redis | app/lib/influx/poll_interval.rb:76 | 4.52 | 0.64 | 2.80% | `get` |
| code | app/controllers/balance/stats_controller.rb:7 | 2.75 | 1.0 | 2.66% | `Balance::StatsController#index` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 2.56 | 1.0 | 2.48% | `pipeline` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 2.44 | 1.0 | 2.37% | `HttpAcceptLanguage::Middleware` |
| redis | app/controllers/balance/stats_controller.rb:95 | 3.92 | 0.36 | 1.37% | `get` |
| redis | app/lib/sensor/query/power_peak.rb:35 | 2.17 | 0.64 | 1.35% | `get` |
| sql | app/models/summary.rb:67 | 3.62 | 0.36 | 1.26% | `SELECT gs.date FROM generate_series(?, ?, ?::interval) AS gs(date) LEFT JOIN su…` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 1.06 | 1.0 | 1.02% | `ActionDispatch::Static` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/Balance::StatsController%23index?range=2026-06-27+18%3A11%3A09+UTC..2026-06-28+18%3A11%3A09+UTC)