# Api::V1::GymsController#search

- **Period:** 12 May 11:06 UTC – 13 May 11:06 UTC
- **Throughput**: 0.22 / min
- **Average:** 56.8 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/api/v1/gyms_controller.rb:30 | 28.63 | 1.0 | 50.40% | `Api::V1::GymsController#search` |
| sql | app/models/search.rb:24 | 13.66 | 0.99 | 23.82% | `SELECT `searches`.`index_id`, `searches`.`index_name` FROM `searches` WHERE (((…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.64 | 2.4 | 6.91% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.52 | 1.0 | 4.44% | `Rails::Engine#call` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.17 | 2.09 | 4.32% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/concerns/searchable.rb:16 | 2.18 | 0.93 | 3.55% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/gym.rb:295 | 1.36 | 1.2 | 2.87% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/models/gym.rb:182 | 1.18 | 1.2 | 2.50% | `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=1d)