# Api::V1::CommonsController#micro_stats

- **Period:** 12 May 23:03 UTC – 13 May 11:03 UTC
- **Throughput**: 0.53 / min
- **Average:** 50.1 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/commons_controller.rb:40 | 137.98 | 0.12 | 32.91% | `SELECT COUNT(*) FROM `crag_routes` WHERE (`crag_routes`.`deleted_at` IS NULL OR…` |
| sql | app/controllers/api/v1/commons_controller.rb:48 | 139.62 | 0.11 | 30.40% | `SELECT COUNT(*), gym_id FROM gyms INNER JOIN gym_spaces ON gyms.id = gym_spaces…` |
| code | app/controllers/api/v1/commons_controller.rb:34 | 6.33 | 1.0 | 12.64% | `Api::V1::CommonsController#micro_stats` |
| sql | app/controllers/api/v1/commons_controller.rb:37 | 12.82 | 0.49 | 12.50% | `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.84 | 1.0 | 5.67% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/commons_controller.rb:39 | 5.22 | 0.41 | 4.27% | `SELECT COUNT(*) FROM `crags` WHERE (`crags`.`deleted_at` IS NULL OR `crags`.`de…` |
| sql | app/controllers/api/v1/commons_controller.rb:38 | 2.49 | 0.29 | 1.45% | `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=12h)