# Api::V1::CommonsController#micro_stats

- **Period:** 27 Jun 09:48 UTC – 27 Jun 16:51 UTC
- **Throughput**: 1.06 / min
- **Average:** 34.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/commons_controller.rb:40 | 92.78 | 0.11 | 30.85% | `SELECT COUNT(*) FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS NULL OR…` |
| sql | app/controllers/api/v1/commons_controller.rb:48 | 100.88 | 0.09 | 27.62% | `SELECT COUNT(*), gym_id FROM gyms INNER JOIN gym_spaces ON gyms.id = gym_spaces…` |
| code | app/controllers/api/v1/commons_controller.rb:34 | 4.6 | 1.0 | 13.50% | `Api::V1::CommonsController#micro_stats` |
| sql | app/controllers/api/v1/commons_controller.rb:37 | 9.73 | 0.47 | 13.32% | `SELECT COUNT(*) FROM `users`` |
| sql | app/controllers/api/v1/commons_controller.rb:39 | 4.7 | 0.46 | 6.40% | `SELECT COUNT(*) FROM `crags` WHERE (`crags`.`deleted_at` IS NULL OR `crags`.`de…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.1 | 0.97 | 5.98% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/commons_controller.rb:38 | 1.63 | 0.21 | 1.01% | `SELECT COUNT(*) FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |

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