# Api::V1::GymsController#search

- **Period:** 27 Jun 09:48 UTC – 27 Jun 17:07 UTC
- **Throughput**: 0.13 / min
- **Average:** 30.6 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:32 | 13.95 | 1.0 | 45.57% | `Api::V1::GymsController#search` |
| sql | app/models/search.rb:24 | 9.24 | 0.96 | 29.11% | `SELECT `searches`.`index_id`, `searches`.`index_name` FROM `searches` WHERE (((…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 1.96 | 1.0 | 6.42% | `Rails::Engine#call` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 0.79 | 1.96 | 5.08% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 0.8 | 1.68 | 4.38% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:293 | 0.95 | 0.98 | 3.03% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/concerns/searchable.rb:16 | 1.3 | 0.66 | 2.80% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym.rb:180 | 0.82 | 0.98 | 2.63% | `SELECT `gym_options`.* FROM `gym_options` WHERE `gym_options`.`gym_id` = ?` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::GymsController%23search?range=2026-06-27+09%3A48%3A53+UTC..2026-06-28+09%3A48%3A53+UTC)