# Balance::StatsController#index

- **Period:** 12 May 18:51 UTC – 13 May 18:51 UTC
- **Throughput**: 0.23 / min
- **Average:** 116.9 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| view | app/views/balance/stats/index.turbo_stream.slim | 30.25 | 0.99 | 25.73% |  |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 39.51 | 0.49 | 16.55% | `POST influxdb` |
| code | app/controllers/balance/stats_controller.rb:7 | 16.62 | 1.0 | 14.22% | `Balance::StatsController#index` |
| gc | ruby/gc.c | 11.66 | 1.05 | 10.49% | `GC.start` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 21.64 | 0.5 | 9.34% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| sql | app/models/summary.rb:59 | 9.75 | 0.51 | 4.23% | `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 | 3.26 | 1.0 | 2.79% | `pipeline` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 2.24 | 1.0 | 1.91% | `HttpAcceptLanguage::Middleware` |
| redis | app/controllers/balance/stats_controller.rb:95 | 3.78 | 0.51 | 1.64% | `get` |
| redis | app/lib/sensor/query/power_peak.rb:35 | 2.66 | 0.49 | 1.12% | `get` |
| redis | app/lib/influx/poll_interval.rb:45 | 2.53 | 0.49 | 1.05% | `set` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/Balance::StatsController%23index?range=1d)