# Api::V1::CommonsController#micro_stats

- **Period:** 13 May 10:48 UTC – 13 May 11:03 UTC
- **Throughput**: 1.2 / min
- **Average:** 86.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/commons_controller.rb:48 | 129.8 | 0.28 | 41.87% | `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.28 | 33.74% | `SELECT COUNT(*) FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS NULL OR…` |
| sql | app/controllers/api/v1/commons_controller.rb:37 | 13.07 | 0.78 | 11.81% | `SELECT COUNT(*) FROM `users`` |
| code | app/controllers/api/v1/commons_controller.rb:34 | 4.5 | 1.0 | 5.23% | `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.61 | 1.0 | 3.03% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/commons_controller.rb:39 | 7.33 | 0.33 | 2.84% | `SELECT COUNT(*) FROM `crags` WHERE (`crags`.`deleted_at` IS NULL OR `crags`.`de…` |
| sql | app/controllers/api/v1/commons_controller.rb:38 | 2.63 | 0.44 | 1.35% | `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=15m)