# Api::V1::SearchesController#search_all

- **Period:** 13 May 05:15 UTC – 13 May 11:15 UTC
- **Throughput**: 0.08 / min
- **Average:** 121.5 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| sql | app/models/search.rb:54 | 47.52 | 1.0 | 39.10% | `SELECT DISTINCT `searches`.`index_id`, `searches`.`index_name`, `searches`.`col…` |
| code | app/controllers/api/v1/searches_controller.rb:23 | 46.74 | 1.0 | 38.46% | `Api::V1::SearchesController#search_all` |
| sql | app/controllers/api/v1/searches_controller.rb:41 | 1.69 | 3.26 | 4.54% | `SELECT `crags`.* FROM `crags` WHERE (`crags`.`deleted_at` IS NULL OR `crags`.`d…` |
| sql | app/controllers/api/v1/searches_controller.rb:43 | 1.4 | 3.7 | 4.27% | `SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`delet…` |
| sql | app/models/concerns/attachment_resizable.rb:10 | 1.31 | 3.7 | 3.99% | `SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `…` |
| sql | app/models/concerns/attachment_resizable.rb:12 | 1.21 | 3.7 | 3.69% | `SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_stora…` |
| code | /var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525 | 2.67 | 1.0 | 2.19% | `Rails::Engine#call` |
| sql | app/controllers/api/v1/searches_controller.rb:47 | 1.13 | 1.48 | 1.37% | `SELECT `areas`.* FROM `areas` WHERE `areas`.`id` = ?` |

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