# Api::V1::GymsController#search

- **Period:** 13 May 09:28 UTC – 13 May 10:28 UTC
- **Throughput**: 0.93 / min
- **Average:** 45.9 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:30 | 24.04 | 1.0 | 52.35% | `Api::V1::GymsController#search` |
| sql | app/models/search.rb:24 | 10.95 | 1.0 | 23.84% | `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 | 2.45 | 1.0 | 5.33% | `Rails::Engine#call` |
| sql | app/models/concerns/searchable.rb:16 | 2.22 | 0.96 | 4.67% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.17 | 1.82 | 4.63% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.09 | 1.54 | 3.66% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:295 | 1.31 | 0.91 | 2.61% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/gym.rb:182 | 1.12 | 0.91 | 2.22% | `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=1h)