# Api::V1::GymsController#search

- **Period:** 13 May 05:13 UTC – 13 May 11:13 UTC
- **Throughput**: 0.37 / min
- **Average:** 45.7 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:30 | 23.46 | 1.0 | 51.36% | `Api::V1::GymsController#search` |
| sql | app/models/search.rb:24 | 12.09 | 1.0 | 26.47% | `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.37% | `Rails::Engine#call` |
| sql | app/models/concerns/searchable.rb:16 | 2.2 | 0.95 | 4.59% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.21 | 1.55 | 4.10% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.15 | 1.29 | 3.26% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:295 | 1.34 | 0.77 | 2.27% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/gym.rb:182 | 1.14 | 0.77 | 1.93% | `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=6h)