# Api::V1::CommonsController#micro_stats

- **Period:** 13 May 08:03 UTC – 13 May 11:03 UTC
- **Throughput**: 1.23 / min
- **Average:** 44.9 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/commons_controller.rb:40 | 155.68 | 0.1 | 34.53% | `SELECT COUNT(*) FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS NULL OR…` |
| sql | app/controllers/api/v1/commons_controller.rb:48 | 140.9 | 0.09 | 28.41% | `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.62 | 0.47 | 13.23% | `SELECT COUNT(*) FROM `users`` |
| code | app/controllers/api/v1/commons_controller.rb:34 | 5.2 | 1.0 | 11.59% | `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.55 | 1.0 | 5.69% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/commons_controller.rb:39 | 5.43 | 0.41 | 4.93% | `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.28 | 1.49% | `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=3h)