# Api::V1::CommonsController#micro_stats

- **Period:** 13 May 10:33 UTC – 13 May 11:03 UTC
- **Throughput**: 1.0 / min
- **Average:** 57.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/commons_controller.rb:48 | 129.8 | 0.17 | 37.95% | `SELECT COUNT(*), gym_id FROM gyms INNER JOIN gym_spaces ON gyms.id = gym_spaces…` |
| sql | app/controllers/api/v1/commons_controller.rb:40 | 104.6 | 0.17 | 30.58% | `SELECT COUNT(*) FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS NULL OR…` |
| sql | app/controllers/api/v1/commons_controller.rb:37 | 12.47 | 0.63 | 13.86% | `SELECT COUNT(*) FROM `users`` |
| code | app/controllers/api/v1/commons_controller.rb:34 | 4.2 | 1.0 | 7.37% | `Api::V1::CommonsController#micro_stats` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.47 | 1.0 | 4.33% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/commons_controller.rb:39 | 7.56 | 0.3 | 3.98% | `SELECT COUNT(*) FROM `crags` WHERE (`crags`.`deleted_at` IS NULL OR `crags`.`de…` |
| sql | app/controllers/api/v1/commons_controller.rb:38 | 2.58 | 0.4 | 1.81% | `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=30m)