|
code
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
|
62%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
- Average Self
-
191ms
- Average calls
- 1x
- Total Self
- 191ms
- Total Children
- 114ms
- Total runtime
- 305ms
Api::V1::AscentGymRoutesController#points
|
|
sql
app/models/ascent_gym_route.rb:63
|
5%
|
app/models/ascent_gym_route.rb:63
- Average Self
-
1ms
- Average calls
- 16x
- Total Self
- 16ms
- Total Children
- 0ms
- Total runtime
- 16ms
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
|
5%
|
app/models/ascent_gym_route.rb:62
- Average Self
-
0.97ms
- Average calls
- 16x
- Total Self
- 15ms
- Total Children
- 0ms
- Total runtime
- 15ms
SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?
|
|
sql
app/models/ascent_gym_route.rb:35
|
5%
|
app/models/ascent_gym_route.rb:35
- Average Self
-
0.94ms
- Average calls
- 16x
- Total Self
- 15ms
- Total Children
- 0ms
- Total runtime
- 15ms
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.2ms
- Average calls
- 9.4x
- Total Self
- 11ms
- Total Children
- 0ms
- Total runtime
- 11ms
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
-
8.5ms
- Average calls
- 1x
- Total Self
- 8.5ms
- Total Children
- 0ms
- Total runtime
- 8.5ms
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:243
|
3%
|
app/models/gym_route.rb:243
- Average Self
-
0.78ms
- Average calls
- 10x
- Total Self
- 8ms
- Total Children
- 0ms
- Total runtime
- 8ms
SELECT `gym_route_covers`.* FROM `gym_route_covers` WHERE `gym_route_covers`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:50
|
2%
|
app/models/gym_route.rb:50
- Average Self
-
1.1ms
- Average calls
- 4.9x
- Total Self
- 5.5ms
- Total Children
- 0ms
- Total runtime
- 5.5ms
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:268
|
1%
|
app/models/gym_route.rb:268
- Average Self
-
1.1ms
- Average calls
- 3.7x
- Total Self
- 4.1ms
- Total Children
- 0ms
- Total runtime
- 4.1ms
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:132
|
1%
|
app/models/gym_route.rb:132
- Average Self
-
1ms
- Average calls
- 3.7x
- Total Self
- 3.9ms
- Total Children
- 0ms
- Total runtime
- 3.9ms
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
- 3.7x
- Total Self
- 3.7ms
- Total Children
- 0ms
- Total runtime
- 3.7ms
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.86ms
- Average calls
- 4.2x
- Total Self
- 3.6ms
- Total Children
- 0ms
- Total runtime
- 3.6ms
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/models/gym_route.rb:215
|
1%
|
app/models/gym_route.rb:215
- Average Self
-
0.96ms
- Average calls
- 3.7x
- Total Self
- 3.6ms
- Total Children
- 0ms
- Total runtime
- 3.6ms
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.79ms
- Average calls
- 3.9x
- Total Self
- 3ms
- Total Children
- 0ms
- Total runtime
- 3ms
SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_storage_blobs`.`id` = ? LIMIT ?
|
|
sql
app/models/ascent_gym_route.rb:70
|
<1%
|
app/models/ascent_gym_route.rb:70
- Average Self
-
0.27ms
- Average calls
- 10x
- 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.4ms
- Average calls
- 1x
- Total Self
- 2.4ms
- Total Children
- 305ms
- Total runtime
- 308ms
Rails::Engine#call
|
|
sql
app/models/color_system.rb:48
|
<1%
|
app/models/color_system.rb:48
- Average Self
-
0.16ms
- Average calls
- 10x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
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.12ms
- Average calls
- 10x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `color_systems`.* FROM `color_systems` WHERE `color_systems`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:64
|
<1%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.1ms
- Average calls
- 1x
- Total Self
- 1.1ms
- Total Children
- 0ms
- Total runtime
- 1.1ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? 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: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/models/gym_route.rb:102
|
<1%
|
app/models/gym_route.rb:102
- Average Self
-
0.23ms
- Average calls
- 3.9x
- Total Self
- 0.88ms
- Total Children
- 0ms
- Total runtime
- 0.88ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?
|
|
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.83ms
- Average calls
- 1x
- Total Self
- 0.83ms
- Total Children
- 0ms
- Total runtime
- 0.83ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ? AND `gym_levels`.`climbing_type` = ? LIMIT ?
|
|
sql
app/models/gym.rb:282
|
<1%
|
app/models/gym.rb:282
- Average Self
-
1.2ms
- Average calls
- 0.24x
- Total Self
- 0.28ms
- Total Children
- 0ms
- Total runtime
- 0.28ms
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
|
|
sql
app/models/gym.rb:293
|
<1%
|
app/models/gym.rb:293
- Average Self
-
0.83ms
- Average calls
- 0.24x
- Total Self
- 0.2ms
- Total Children
- 0ms
- Total runtime
- 0.2ms
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:180
|
<1%
|
app/models/gym.rb:180
- Average Self
-
0.72ms
- Average calls
- 0.24x
- 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_route.rb:52
|
<1%
|
app/models/gym_route.rb:52
- Average Self
-
1.1ms
- Average calls
- 0.11x
- Total Self
- 0.12ms
- Total Children
- 0ms
- Total runtime
- 0.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/models/gym.rb:295
|
<1%
|
app/models/gym.rb:295
- Average Self
-
1ms
- Average calls
- 0.05x
- Total Self
- 0.05ms
- Total Children
- 0ms
- Total runtime
- 0.05ms
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 ?
|