# Balance::StatsController#index

- **Period:** 13 May 05:50 UTC – 13 May 17:50 UTC
- **Throughput**: 0.28 / min
- **Average:** 124.3 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| view | app/views/balance/stats/index.turbo_stream.slim | 32.35 | 0.99 | 25.76% |  |
| code | app/controllers/balance/stats_controller.rb:7 | 21.12 | 1.0 | 16.99% | `Balance::StatsController#index` |
| sql | app/lib/sensor/query/helpers/sql/total.rb:173 | 21.5 | 0.73 | 12.66% | `WITH price_ranges AS ( SELECT name, starts_at, LEAD(starts_at, ?, ?::date) OVER…` |
| gc | ruby/gc.c | 13.15 | 1.11 | 11.70% | `GC.start` |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 35.82 | 0.26 | 7.42% | `POST influxdb` |
| sql | app/models/summary.rb:59 | 10.28 | 0.74 | 6.10% | `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.9 | 1.0 | 3.14% | `pipeline` |
| redis | app/controllers/balance/stats_controller.rb:95 | 3.76 | 0.74 | 2.23% | `get` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 1.72 | 1.0 | 1.39% | `HttpAcceptLanguage::Middleware` |
| sql | app/lib/sensor/summarizer.rb:36 | 10.71 | 0.14 | 1.22% | `COMMIT` |
| sql | app/lib/sensor/summarizer.rb:63 | 9.75 | 0.14 | 1.11% | `UPDATE "summaries" SET "updated_at" = ? WHERE "summaries"."date" = ?` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/static.rb:26 | 1.29 | 1.0 | 1.04% | `ActionDispatch::Static` |

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