code
app/controllers/api/v1/gyms_controller.rb:35
|
20 ms
|
1.0
|
59 %
|
Api::V1::GymsController#show
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
4 ms
|
1.0
|
12 %
|
|
sql
app/models/gym.rb:155
|
2 ms
|
1.0
|
5 %
|
SELECT COUNT(*) FROM `follows` WHERE `follows`.`followable_id` = 244 AND `follows`.`followable_type` = 'Gym'
|
sql
app/models/gym.rb:158
|
2 ms
|
1.0
|
5 %
|
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > '2022-06-30 00:21:23.953239') AND `gym_spaces`.`gym_id` = 76 ORDER BY `gym_spaces`.`order` ASC
|
sql
app/models/gym.rb:156
|
1 ms
|
1.0
|
4 %
|
SELECT COUNT(*) FROM `gym_grades` WHERE (`gym_grades`.`deleted_at` IS NULL OR `gym_grades`.`deleted_at` > '2022-06-30 00:21:23.945943') AND `gym_grades`.`gym_id` = 76
|
sql
app/controllers/api/v1/api_controller.rb:42
|
1 ms
|
1.0
|
4 %
|
SET NAMES utf8mb4, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
|
sql
app/controllers/api/v1/gyms_controller.rb:117
|
1 ms
|
1.0
|
4 %
|
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > '2022-06-30 00:21:23.936241') AND `gyms`.`id` = 76 LIMIT 1
|
sql
app/models/gym.rb:159
|
1 ms
|
1.0
|
4 %
|
SELECT `users`.* FROM `users` WHERE `users`.`id` = 396 LIMIT 1
|
sql
app/models/gym.rb:157
|
1 ms
|
1.0
|
3 %
|
SELECT COUNT(*) FROM `versions` WHERE `versions`.`item_id` = 244 AND `versions`.`item_type` = 'Gym'
|
sql
app/models/concerns/attachment_resizable.rb:9
|
2 ms
|
<0.1
|
<1 %
|
SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_storage_blobs`.`id` = 3818 LIMIT 1
|
sql
app/models/gym.rb:144
|
2 ms
|
<0.1
|
<1 %
|
SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `active_storage_attachments`.`record_id` = 244 AND `active_storage_attachments`.`record_type` = 'Gym' AND `active_storage_attachments`.`name` = 'banner' LIMIT 1
|
sql
app/models/gym.rb:147
|
2 ms
|
<0.1
|
<1 %
|
SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `active_storage_attachments`.`record_id` = 244 AND `active_storage_attachments`.`record_type` = 'Gym' AND `active_storage_attachments`.`name` = 'logo' LIMIT 1
|
sql
app/models/gym_space.rb:80
|
1 ms
|
<0.1
|
<1 %
|
SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `active_storage_attachments`.`record_id` = 9 AND `active_storage_attachments`.`record_type` = 'GymSpace' AND `active_storage_attachments`.`name` = 'plan' LIMIT 1
|
sql
app/models/gym_space.rb:79
|
1 ms
|
<0.1
|
<1 %
|
SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `active_storage_attachments`.`record_id` = 9 AND `active_storage_attachments`.`record_type` = 'GymSpace' AND `active_storage_attachments`.`name` = 'banner' LIMIT 1
|