|
code
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
|
62%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
- Average Self
-
205ms
- Average calls
- 1x
- Total Self
- 205ms
- Total Children
- 124ms
- Total runtime
- 329ms
Api::V1::AscentGymRoutesController#points
|
|
sql
app/models/ascent_gym_route.rb:63
|
6%
|
app/models/ascent_gym_route.rb:63
- Average Self
-
1.2ms
- Average calls
- 17x
- 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
|
5%
|
app/models/ascent_gym_route.rb:62
- Average Self
-
0.97ms
- Average calls
- 17x
- Total Self
- 16ms
- Total Children
- 0ms
- Total runtime
- 16ms
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.95ms
- Average calls
- 17x
- Total Self
- 16ms
- Total Children
- 0ms
- Total runtime
- 16ms
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.9x
- 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
-
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 `ascents`.`released_at` BETWEEN ? AND ? 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.81ms
- Average calls
- 10x
- Total Self
- 8.3ms
- Total Children
- 0ms
- Total runtime
- 8.3ms
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
- 6.7x
- Total Self
- 7.6ms
- Total Children
- 0ms
- Total runtime
- 7.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:268
|
1%
|
app/models/gym_route.rb:268
- Average Self
-
1.1ms
- Average calls
- 3.6x
- Total Self
- 4ms
- Total Children
- 0ms
- Total runtime
- 4ms
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.6x
- Total Self
- 3.7ms
- Total Children
- 0ms
- Total runtime
- 3.7ms
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
-
0.97ms
- Average calls
- 3.6x
- Total Self
- 3.5ms
- Total Children
- 0ms
- Total runtime
- 3.5ms
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.87ms
- Average calls
- 4x
- Total Self
- 3.5ms
- Total Children
- 0ms
- Total runtime
- 3.5ms
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.6x
- Total Self
- 3.5ms
- Total Children
- 0ms
- Total runtime
- 3.5ms
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/ascent_gym_route.rb:70
|
<1%
|
app/models/ascent_gym_route.rb:70
- Average Self
-
0.27ms
- Average calls
- 11x
- Total Self
- 3ms
- Total Children
- 0ms
- Total runtime
- 3ms
SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lines`.`id` = ? ORDER BY `color_system_lines`.`order` ASC LIMIT ?
|
|
sql
app/models/concerns/attachment_resizable.rb:12
|
<1%
|
app/models/concerns/attachment_resizable.rb:12
- Average Self
-
0.77ms
- Average calls
- 3.8x
- Total Self
- 2.9ms
- Total Children
- 0ms
- Total runtime
- 2.9ms
SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_storage_blobs`.`id` = ? 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
- 329ms
- Total runtime
- 331ms
Rails::Engine#call
|
|
sql
app/models/color_system.rb:48
|
<1%
|
app/models/color_system.rb:48
- Average Self
-
0.16ms
- Average calls
- 11x
- 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.13ms
- Average calls
- 11x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
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:57
|
<1%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:57
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 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
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:102
|
<1%
|
app/models/gym_route.rb:102
- Average Self
-
0.23ms
- Average calls
- 3.8x
- 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.8ms
- Average calls
- 1x
- Total Self
- 0.8ms
- Total Children
- 0ms
- Total runtime
- 0.8ms
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.1ms
- Average calls
- 0.19x
- Total Self
- 0.2ms
- Total Children
- 0ms
- Total runtime
- 0.2ms
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.19x
- Total Self
- 0.16ms
- Total Children
- 0ms
- Total runtime
- 0.16ms
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.75ms
- Average calls
- 0.19x
- Total Self
- 0.14ms
- Total Children
- 0ms
- Total runtime
- 0.14ms
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.13x
- Total Self
- 0.14ms
- Total Children
- 0ms
- Total runtime
- 0.14ms
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.09x
- Total Self
- 0.09ms
- Total Children
- 0ms
- Total runtime
- 0.09ms
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 ?
|