# Api::V1::SearchesController#search_around

- **Period:** 12 May 23:08 UTC – 13 May 11:08 UTC
- **Throughput**: 0.0 / min
- **Average:** 255.0 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/controllers/api/v1/searches_controller.rb:91 | 168.0 | 1.0 | 65.88% | `SELECT id, type, getrange(latitude, longitude, ?, ?) FROM (SELECT id, ? AS type…` |
| code | app/controllers/api/v1/searches_controller.rb:66 | 54.0 | 1.0 | 21.18% | `Api::V1::SearchesController#search_around` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.13 | 8.0 | 3.53% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.0 | 8.0 | 3.14% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| sql | app/models/gym.rb:182 | 1.0 | 4.0 | 1.57% | `SELECT `gym_options`.* FROM `gym_options` WHERE `gym_options`.`gym_id` = ?` |
| sql | app/models/gym.rb:295 | 1.0 | 4.0 | 1.57% | `SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `…` |
| sql | app/controllers/api/v1/searches_controller.rb:100 | 3.0 | 1.0 | 1.18% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/135627/requests/Api::V1::SearchesController%23search_around?range=12h)