# Api::V1::CommonsController#micro_stats

- **Period:** 13 May 09:30 UTC – 13 May 10:30 UTC
- **Throughput**: 1.3 / min
- **Average:** 32.3 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/commons_controller.rb:40 | 142.0 | 0.05 | 22.53% | `SELECT COUNT(*) FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS NULL OR…` |
| code | app/controllers/api/v1/commons_controller.rb:34 | 7.17 | 1.0 | 22.17% | `Api::V1::CommonsController#micro_stats` |
| sql | app/controllers/api/v1/commons_controller.rb:48 | 134.75 | 0.05 | 21.38% | `SELECT COUNT(*), gym_id FROM gyms INNER JOIN gym_spaces ON gyms.id = gym_spaces…` |
| sql | app/controllers/api/v1/commons_controller.rb:37 | 12.39 | 0.49 | 18.68% | `SELECT COUNT(*) FROM `users`` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.59 | 1.0 | 8.01% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/commons_controller.rb:39 | 5.26 | 0.29 | 4.80% | `SELECT COUNT(*) FROM `crags` WHERE (`crags`.`deleted_at` IS NULL OR `crags`.`de…` |
| sql | app/controllers/api/v1/commons_controller.rb:38 | 2.43 | 0.29 | 2.22% | `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=1h)