# Api::V1::GymsController#search

- **Period:** 26 Jun 20:16 UTC – 27 Jun 09:48 UTC
- **Throughput**: 0.05 / min
- **Average:** 41.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:32 | 20.47 | 1.0 | 49.94% | `Api::V1::GymsController#search` |
| sql | app/models/search.rb:24 | 11.6 | 0.98 | 27.64% | `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.95 | 1.0 | 4.77% | `Rails::Engine#call` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 0.83 | 2.28 | 4.60% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 0.8 | 2.16 | 4.20% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/concerns/searchable.rb:16 | 1.49 | 0.95 | 3.46% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym.rb:180 | 0.9 | 1.14 | 2.50% | `SELECT `gym_options`.* FROM `gym_options` WHERE `gym_options`.`gym_id` = ?` |
| sql | app/models/gym.rb:293 | 0.78 | 1.14 | 2.16% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |

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