# Api::V1::LogBooks::IndoorsController#simple_stats_by_gyms

- **Period:** 27 Jun 09:48 UTC – 27 Jun 17:10 UTC
- **Throughput**: 0.22 / min
- **Average:** 35.5 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/log_books/indoors_controller.rb:34 | 22.61 | 1.0 | 63.70% | `Api::V1::LogBooks::IndoorsController#simple_stats_by_gyms` |
| sql | app/controllers/api/v1/log_books/indoors_controller.rb:36 | 2.74 | 1.88 | 14.49% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| sql | app/controllers/api/v1/log_books/indoors_controller.rb:56 | 2.63 | 1.14 | 8.45% | `SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`use…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 1.91 | 0.98 | 5.26% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/api_controller.rb:64 | 1.15 | 1.01 | 3.28% | `SET NAMES utf8mb4, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ?), ?), @@SES…` |
| sql | app/models/log_book/indoor/chart.rb:49 | 1.02 | 0.48 | 1.38% | `SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lin…` |
| sql | app/controllers/api/v1/log_books/indoors_controller.rb:43 | 1.13 | 0.39 | 1.24% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::LogBooks::IndoorsController%23simple_stats_by_gyms?range=2026-06-27+09%3A48%3A53+UTC..2026-06-28+09%3A48%3A53+UTC)