|
code
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
|
63%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
- Average Self
-
193ms
- Average calls
- 1x
- Total Self
- 193ms
- Total Children
- 111ms
- Total runtime
- 305ms
Api::V1::AscentGymRoutesController#points
|
|
sql
app/models/ascent_gym_route.rb:63
|
6%
|
app/models/ascent_gym_route.rb:63
- Average Self
-
1.1ms
- Average calls
- 18x
- Total Self
- 19ms
- Total Children
- 0ms
- Total runtime
- 19ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/models/ascent_gym_route.rb:62
|
6%
|
app/models/ascent_gym_route.rb:62
- Average Self
-
0.97ms
- Average calls
- 18x
- Total Self
- 18ms
- Total Children
- 0ms
- Total runtime
- 18ms
SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?
|
|
sql
app/models/ascent_gym_route.rb:35
|
6%
|
app/models/ascent_gym_route.rb:35
- Average Self
-
0.97ms
- Average calls
- 18x
- Total Self
- 17ms
- Total Children
- 0ms
- Total runtime
- 17ms
SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `comments`.`commentable_type` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:48
|
4%
|
app/models/gym_route.rb:48
- Average Self
-
1.3ms
- Average calls
- 9.9x
- Total Self
- 12ms
- Total Children
- 0ms
- Total runtime
- 12ms
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 ?
|
|
sql
app/controllers/api/v1/ascent_gym_routes_controller.rb:85
|
3%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:85
- Average Self
-
10ms
- Average calls
- 1x
- Total Self
- 10ms
- Total Children
- 0ms
- Total runtime
- 10ms
SELECT `ascents`.* FROM `ascents` INNER JOIN `gym_routes` ON `gym_routes`.`id` = `ascents`.`gym_route_id` INNER JOIN `gym_sectors` ON `gym_sectors`.`id` = `gym_routes`.`gym_sector_id` AND (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) INNER JOIN `gym_spaces` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` AND (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) WHERE `ascents`.`type` = ? AND `ascents`.`user_id` = ? AND `gym_spaces`.`gym_id` = ? AND `ascents`.`ascent_status` NOT IN (?) AND `gym_routes`.`dismounted_at` IS NULL AND `gym_routes`.`climbing_type` = ? ORDER BY gym_routes.level_index DESC, ascents.released_at DESC, ascents.id LIMIT ? OFFSET ?
|
|
sql
app/models/gym_route.rb:50
|
3%
|
app/models/gym_route.rb:50
- Average Self
-
1.1ms
- Average calls
- 8.4x
- Total Self
- 9.6ms
- Total Children
- 0ms
- Total runtime
- 9.6ms
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 ?
|
|
sql
app/models/gym_route.rb:243
|
1%
|
app/models/gym_route.rb:243
- Average Self
-
0.93ms
- Average calls
- 3.9x
- Total Self
- 3.7ms
- Total Children
- 0ms
- Total runtime
- 3.7ms
SELECT `gym_route_covers`.* FROM `gym_route_covers` WHERE `gym_route_covers`.`id` = ? LIMIT ?
|
|
sql
app/models/ascent_gym_route.rb:70
|
<1%
|
app/models/ascent_gym_route.rb:70
- Average Self
-
0.25ms
- Average calls
- 11x
- Total Self
- 2.9ms
- Total Children
- 0ms
- Total runtime
- 2.9ms
SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lines`.`id` = ? ORDER BY `color_system_lines`.`order` ASC LIMIT ?
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
<1%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
2.6ms
- Average calls
- 1x
- Total Self
- 2.6ms
- Total Children
- 305ms
- Total runtime
- 307ms
Rails::Engine#call
|
|
sql
app/models/color_system.rb:48
|
<1%
|
app/models/color_system.rb:48
- Average Self
-
0.15ms
- Average calls
- 11x
- Total Self
- 1.8ms
- Total Children
- 0ms
- Total runtime
- 1.8ms
SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lines`.`color_system_id` = ? ORDER BY `color_system_lines`.`order` ASC
|
|
sql
app/models/ascent_gym_route.rb:71
|
<1%
|
app/models/ascent_gym_route.rb:71
- Average Self
-
0.15ms
- Average calls
- 11x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
SELECT `color_systems`.* FROM `color_systems` WHERE `color_systems`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:268
|
<1%
|
app/models/gym_route.rb:268
- Average Self
-
1.1ms
- Average calls
- 1.4x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
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/gym_route.rb:215
|
<1%
|
app/models/gym_route.rb:215
- Average Self
-
1.1ms
- Average calls
- 1.4x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
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/concerns/attachment_resizable.rb:12
|
<1%
|
app/models/concerns/attachment_resizable.rb:12
- Average Self
-
0.84ms
- Average calls
- 1.7x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_storage_blobs`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:132
|
<1%
|
app/models/gym_route.rb:132
- Average Self
-
1.1ms
- Average calls
- 1.4x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
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
- 1.4x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
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/concerns/attachment_resizable.rb:10
|
<1%
|
app/models/concerns/attachment_resizable.rb:10
- Average Self
-
0.77ms
- Average calls
- 1.8x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
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:64
|
<1%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.2ms
- Average calls
- 1x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/ascent_gym_routes_controller.rb:57
|
<1%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:57
- Average Self
-
1.1ms
- Average calls
- 1x
- Total Self
- 1.1ms
- Total Children
- 0ms
- Total runtime
- 1.1ms
SELECT `users`.* FROM `users` WHERE `users`.`uuid` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/ascent_gym_routes_controller.rb:58
|
<1%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:58
- Average Self
-
1.1ms
- Average calls
- 1x
- Total Self
- 1.1ms
- Total Children
- 0ms
- Total runtime
- 1.1ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/ascent_gym_routes_controller.rb:64
|
<1%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:64
- Average Self
-
0.76ms
- Average calls
- 1x
- Total Self
- 0.76ms
- Total Children
- 0ms
- Total runtime
- 0.76ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ? AND `gym_levels`.`climbing_type` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:102
|
<1%
|
app/models/gym_route.rb:102
- Average Self
-
0.4ms
- Average calls
- 1.6x
- Total Self
- 0.66ms
- Total Children
- 0ms
- Total runtime
- 0.66ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?
|
|
sql
app/models/gym.rb:293
|
<1%
|
app/models/gym.rb:293
- Average Self
-
1ms
- Average calls
- 0.21x
- Total Self
- 0.21ms
- Total Children
- 0ms
- Total runtime
- 0.21ms
SELECT COUNT(*) FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`gym_id` = ?
|
|
sql
app/models/gym.rb:295
|
<1%
|
app/models/gym.rb:295
- Average Self
-
1ms
- Average calls
- 0.21x
- Total Self
- 0.21ms
- Total Children
- 0ms
- Total runtime
- 0.21ms
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`gym_id` = ? ORDER BY `gym_spaces`.`order` ASC LIMIT ?
|
|
sql
app/models/gym.rb:180
|
<1%
|
app/models/gym.rb:180
- Average Self
-
0.83ms
- Average calls
- 0.21x
- Total Self
- 0.17ms
- Total Children
- 0ms
- Total runtime
- 0.17ms
SELECT `gym_options`.* FROM `gym_options` WHERE `gym_options`.`gym_id` = ?
|
|
sql
app/models/gym.rb:282
|
<1%
|
app/models/gym.rb:282
- Average Self
-
0.83ms
- Average calls
- 0.21x
- Total Self
- 0.17ms
- Total Children
- 0ms
- Total runtime
- 0.17ms
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`gym_id` = ? ORDER BY `gym_spaces`.`order` ASC
|