# Balance::StatsController#index

- **Period:** 13 May 16:27 UTC – 13 May 17:27 UTC
- **Throughput**: 0.23 / min
- **Average:** 210.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/balance/stats_controller.rb:7 | 61.93 | 1.0 | 29.47% | `Balance::StatsController#index` |
| view | app/views/balance/stats/index.turbo_stream.slim | 56.21 | 1.0 | 26.75% |  |
| gc | ruby/gc.c | 17.87 | 1.07 | 9.11% | `GC.start` |
| sql | app/models/summary.rb:59 | 18.85 | 0.93 | 8.33% | `SELECT gs.date FROM generate_series(?, ?, ?::interval) AS gs(date) LEFT JOIN su…` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 15.0 | 0.93 | 6.63% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 8.93 | 1.0 | 4.25% | `pipeline` |
| redis | app/controllers/balance/stats_controller.rb:95 | 4.93 | 1.0 | 2.35% | `get` |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 68.0 | 0.07 | 2.31% | `POST influxdb` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 4.07 | 1.0 | 1.94% | `HttpAcceptLanguage::Middleware` |
| sql | app/lib/sensor/summarizer.rb:55 | 5.88 | 0.57 | 1.60% | `BEGIN SELECT "summaries".* FROM "summaries" WHERE "summaries"."date" = ? ORDER …` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 3.29 | 1.0 | 1.56% | `ActionDispatch::Static` |
| cache | app/controllers/balance/stats_controller.rb:95 | 2.64 | 1.0 | 1.26% | `read` |

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