# Balance::StatsController#index

- **Period:** 13 May 16:19 UTC – 13 May 20:43 UTC
- **Throughput**: 0.22 / min
- **Average:** 167.8 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/balance/stats_controller.rb:7 | 52.98 | 1.0 | 31.58% | `Balance::StatsController#index` |
| view | app/views/balance/stats/index.turbo_stream.slim | 40.57 | 1.0 | 24.18% |  |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 17.27 | 0.83 | 8.52% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| gc | ruby/gc.c | 15.63 | 0.83 | 7.71% | `GC.start` |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 55.9 | 0.17 | 5.74% | `POST influxdb` |
| sql | app/models/summary.rb:59 | 10.58 | 0.83 | 5.22% | `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 | 5.16 | 1.0 | 3.07% | `pipeline` |
| redis | app/controllers/balance/stats_controller.rb:95 | 3.67 | 0.84 | 1.85% | `get` |
| sql | app/lib/sensor/summarizer.rb:55 | 4.71 | 0.66 | 1.84% | `BEGIN SELECT "summaries".* FROM "summaries" WHERE "summaries"."date" = ? ORDER …` |
| redis | app/lib/influx/poll_interval.rb:45 | 13.33 | 0.16 | 1.23% | `set` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 2.0 | 1.0 | 1.19% | `HttpAcceptLanguage::Middleware` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 1.79 | 1.0 | 1.07% | `ActionDispatch::Static` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/Balance::StatsController%23index?range=2026-05-13+16%3A19%3A35+UTC..2026-05-14+16%3A19%3A35+UTC)