|
code
app/controllers/api/v1/gym_routes_controller.rb:204
|
54%
|
app/controllers/api/v1/gym_routes_controller.rb:204
- Average Self
-
10ms
- Average calls
- 1x
- Total Self
- 10ms
- Total Children
- 6.9ms
- Total runtime
- 17ms
Api::V1::GymRoutesController#show
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
10%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
1.8ms
- Average calls
- 1x
- Total Self
- 1.8ms
- Total Children
- 17ms
- Total runtime
- 18ms
Rails::Engine#call
|
|
sql
app/controllers/concerns/gymable.rb:16
|
7%
|
app/controllers/concerns/gymable.rb:16
- Average Self
-
1.3ms
- Average calls
- 0.99x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:413
|
6%
|
app/controllers/api/v1/gym_routes_controller.rb:413
- Average Self
-
1.1ms
- Average calls
- 0.93x
- Total Self
- 1.1ms
- Total Children
- 0ms
- Total runtime
- 1.1ms
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`id` = ? ORDER BY `gym_spaces`.`order` ASC LIMIT ?
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:421
|
5%
|
app/controllers/api/v1/gym_routes_controller.rb:421
- Average Self
-
0.99ms
- Average calls
- 0.99x
- Total Self
- 0.98ms
- Total Children
- 0ms
- Total runtime
- 0.98ms
SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:288
|
5%
|
app/models/gym_route.rb:288
- Average Self
-
0.98ms
- Average calls
- 0.98x
- Total Self
- 0.96ms
- Total Children
- 0ms
- Total runtime
- 0.96ms
SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND `gym_sectors`.`id` = ? ORDER BY `gym_sectors`.`order` ASC LIMIT ?
|
|
sql
app/models/gym_route_ascents_mapper.rb:26
|
5%
|
app/models/gym_route_ascents_mapper.rb:26
- Average Self
-
0.99ms
- Average calls
- 0.93x
- Total Self
- 0.92ms
- Total Children
- 0ms
- Total runtime
- 0.92ms
SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`user_id` = ? AND `ascents`.`gym_route_id` = ?
|
|
sql
app/controllers/api/v1/api_controller.rb:73
|
4%
|
app/controllers/api/v1/api_controller.rb:73
- Average Self
-
0.89ms
- Average calls
- 0.93x
- Total Self
- 0.84ms
- Total Children
- 0ms
- Total runtime
- 0.84ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route_ascents_mapper.rb:29
|
3%
|
app/models/gym_route_ascents_mapper.rb:29
- Average Self
-
1.1ms
- Average calls
- 0.49x
- Total Self
- 0.55ms
- Total Children
- 0ms
- Total runtime
- 0.55ms
SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`user_id` = ? AND `ascents`.`gym_route_id` = ? ORDER BY FIELD(ascent_status, "onsight", "flash", "red_point", "sent", "repetition", "project")
|
|
sql
app/models/gym_sector.rb:23
|
<1%
|
app/models/gym_sector.rb:23
- Average Self
-
1ms
- Average calls
- 0.07x
- Total Self
- 0.07ms
- Total Children
- 0ms
- Total runtime
- 0.07ms
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`id` = ? ORDER BY `gym_spaces`.`order` ASC LIMIT ?
|
|
sql
app/models/gym_route_ascents_mapper.rb:28
|
<1%
|
app/models/gym_route_ascents_mapper.rb:28
- Average Self
-
0.11ms
- Average calls
- 0.49x
- Total Self
- 0.05ms
- Total Children
- 0ms
- Total runtime
- 0.05ms
SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`user_id` = ? AND `ascents`.`gym_route_id` = ?
|
|
sql
app/models/gym_sector.rb:54
|
<1%
|
app/models/gym_sector.rb:54
- Average Self
-
1ms
- Average calls
- 0.03x
- Total Self
- 0.03ms
- Total Children
- 0ms
- Total runtime
- 0.03ms
SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_spaces`.`gym_id` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`id` = ? ORDER BY `gym_spaces`.`order` ASC LIMIT ?
|
|
sql
app/models/gym_route.rb:243
|
<1%
|
app/models/gym_route.rb:243
- Average Self
-
0.83ms
- Average calls
- 0.03x
- Total Self
- 0.03ms
- Total Children
- 0ms
- Total runtime
- 0.03ms
SELECT `gym_route_covers`.* FROM `gym_route_covers` WHERE `gym_route_covers`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:102
|
<1%
|
app/models/gym_route.rb:102
- Average Self
-
1ms
- Average calls
- 0.02x
- Total Self
- 0.02ms
- Total Children
- 0ms
- Total runtime
- 0.02ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?
|
|
sql
app/models/concerns/attachment_resizable.rb:10
|
<1%
|
app/models/concerns/attachment_resizable.rb:10
- Average Self
-
1ms
- Average calls
- 0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `active_storage_attachments`.`record_id` = ? AND `active_storage_attachments`.`record_type` = ? AND `active_storage_attachments`.`name` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:50
|
<1%
|
app/controllers/api/v1/api_controller.rb:50
- Average Self
-
1ms
- Average calls
- 0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `organizations`.* FROM `organizations` WHERE `organizations`.`api_access_token` IS NULL LIMIT ?
|
|
sql
app/models/gym_route.rb:132
|
<1%
|
app/models/gym_route.rb:132
- Average Self
-
1ms
- Average calls
- 0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`id` = ? ORDER BY `gym_spaces`.`order` ASC LIMIT ?
|
|
sql
app/models/gym_route.rb:238
|
<1%
|
app/models/gym_route.rb:238
- Average Self
-
1ms
- Average calls
- 0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND `gym_sectors`.`id` = ? ORDER BY `gym_sectors`.`order` ASC LIMIT ?
|
|
sql
app/models/gym_route.rb:268
|
<1%
|
app/models/gym_route.rb:268
- Average Self
-
1ms
- Average calls
- 0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND `gym_sectors`.`id` = ? ORDER BY `gym_spaces`.`order` ASC, `gym_sectors`.`order` ASC LIMIT ?
|
|
sql
app/models/concerns/attachment_resizable.rb:12
|
<1%
|
app/models/concerns/attachment_resizable.rb:12
- Average Self
-
1ms
- Average calls
- 0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_storage_blobs`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:215
|
<1%
|
app/models/gym_route.rb:215
- Average Self
-
0.5ms
- Average calls
- 0.01x
- Total Self
- <0.01ms
- Total Children
- 0ms
- Total runtime
- <0.01ms
SELECT `gym_openers`.* FROM `gym_openers` INNER JOIN `gym_route_openers` ON `gym_openers`.`id` = `gym_route_openers`.`gym_opener_id` WHERE `gym_route_openers`.`gym_route_id` = ?
|
|
sql
app/models/gym_route.rb:50
|
<1%
|
app/models/gym_route.rb:50
- Average Self
-
1ms
- Average calls
- <0.01x
- Total Self
- <0.01ms
- Total Children
- 0ms
- Total runtime
- <0.01ms
SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_spaces`.`gym_id` INNER JOIN `gym_sectors` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND `gym_sectors`.`id` = ? ORDER BY `gym_spaces`.`order` ASC, `gym_sectors`.`order` ASC LIMIT ?
|