|
code
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
|
58%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:56
- Average Self
-
235ms
- Average calls
- 1x
- Total Self
- 235ms
- Total Children
- 164ms
- Total runtime
- 400ms
Api::V1::AscentGymRoutesController#points
|
|
sql
app/models/ascent_gym_route.rb:64
|
7%
|
app/models/ascent_gym_route.rb:64
- Average Self
-
1.5ms
- Average calls
- 17x
- Total Self
- 27ms
- Total Children
- 0ms
- Total runtime
- 27ms
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:36
|
6%
|
app/models/ascent_gym_route.rb:36
- Average Self
-
1.4ms
- Average calls
- 17x
- Total Self
- 24ms
- Total Children
- 0ms
- Total runtime
- 24ms
SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = ? AND `comments`.`commentable_type` = ? LIMIT ?
|
|
sql
app/models/ascent_gym_route.rb:63
|
6%
|
app/models/ascent_gym_route.rb:63
- Average Self
-
1.4ms
- Average calls
- 17x
- Total Self
- 24ms
- Total Children
- 0ms
- Total runtime
- 24ms
SELECT `gym_routes`.* FROM `gym_routes` WHERE `gym_routes`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:59
|
5%
|
app/models/gym_route.rb:59
- Average Self
-
1.7ms
- Average calls
- 11x
- Total Self
- 19ms
- Total Children
- 0ms
- Total runtime
- 19ms
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
|
4%
|
app/controllers/api/v1/ascent_gym_routes_controller.rb:85
- Average Self
-
15ms
- Average calls
- 1x
- Total Self
- 15ms
- Total Children
- 0ms
- Total runtime
- 15ms
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:61
|
3%
|
app/models/gym_route.rb:61
- Average Self
-
1.7ms
- Average calls
- 6.1x
- Total Self
- 10ms
- Total Children
- 0ms
- Total runtime
- 10ms
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:254
|
2%
|
app/models/gym_route.rb:254
- Average Self
-
1ms
- Average calls
- 7.9x
- Total Self
- 8.1ms
- Total Children
- 0ms
- Total runtime
- 8.1ms
SELECT `gym_route_covers`.* FROM `gym_route_covers` WHERE `gym_route_covers`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:143
|
1%
|
app/models/gym_route.rb:143
- Average Self
-
1.7ms
- Average calls
- 3x
- Total Self
- 5ms
- Total Children
- 0ms
- Total runtime
- 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/concerns/attachment_resizable.rb:10
|
1%
|
app/models/concerns/attachment_resizable.rb:10
- Average Self
-
1.3ms
- Average calls
- 3.3x
- Total Self
- 4.4ms
- Total Children
- 0ms
- Total runtime
- 4.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/models/gym_route.rb:249
|
1%
|
app/models/gym_route.rb:249
- Average Self
-
1.4ms
- Average calls
- 3x
- Total Self
- 4.2ms
- Total Children
- 0ms
- Total runtime
- 4.2ms
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:226
|
<1%
|
app/models/gym_route.rb:226
- Average Self
-
1.4ms
- Average calls
- 3x
- Total Self
- 4ms
- Total Children
- 0ms
- Total runtime
- 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
-
1.2ms
- Average calls
- 3x
- Total Self
- 3.5ms
- Total Children
- 0ms
- Total runtime
- 3.5ms
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
-
3.1ms
- Average calls
- 1x
- Total Self
- 3.1ms
- Total Children
- 400ms
- Total runtime
- 403ms
Rails::Engine#call
|
|
sql
app/models/ascent_gym_route.rb:71
|
<1%
|
app/models/ascent_gym_route.rb:71
- Average Self
-
0.38ms
- Average calls
- 7.6x
- 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 ?
|
|
sql
app/models/ascent_gym_route.rb:72
|
<1%
|
app/models/ascent_gym_route.rb:72
- Average Self
-
0.22ms
- Average calls
- 7.6x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
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.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
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.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `users`.* FROM `users` WHERE `users`.`uuid` = ? LIMIT ?
|
|
sql
app/models/color_system.rb:68
|
<1%
|
app/models/color_system.rb:68
- Average Self
-
0.2ms
- Average calls
- 7.6x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `color_system_lines`.* FROM `color_system_lines` WHERE `color_system_lines`.`color_system_id` = ? ORDER BY `color_system_lines`.`order` ASC
|
|
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.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
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
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ? AND `gym_levels`.`climbing_type` = ? LIMIT ?
|
|
sql
app/models/gym_route.rb:113
|
<1%
|
app/models/gym_route.rb:113
- Average Self
-
0.31ms
- Average calls
- 3x
- Total Self
- 0.92ms
- Total Children
- 0ms
- Total runtime
- 0.92ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?
|
|
sql
app/models/gym.rb:297
|
<1%
|
app/models/gym.rb:297
- Average Self
-
3.4ms
- Average calls
- 0.12x
- Total Self
- 0.42ms
- Total Children
- 0ms
- Total runtime
- 0.42ms
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:284
|
<1%
|
app/models/gym.rb:284
- Average Self
-
1.7ms
- Average calls
- 0.19x
- Total Self
- 0.32ms
- Total Children
- 0ms
- Total runtime
- 0.32ms
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:182
|
<1%
|
app/models/gym.rb:182
- Average Self
-
1.2ms
- Average calls
- 0.19x
- Total Self
- 0.23ms
- Total Children
- 0ms
- Total runtime
- 0.23ms
SELECT `gym_options`.* FROM `gym_options` WHERE `gym_options`.`gym_id` = ?
|
|
sql
app/models/gym.rb:295
|
<1%
|
app/models/gym.rb:295
- Average Self
-
1.2ms
- Average calls
- 0.19x
- Total Self
- 0.23ms
- Total Children
- 0ms
- Total runtime
- 0.23ms
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_route.rb:63
|
<1%
|
app/models/gym_route.rb:63
- Average Self
-
1.6ms
- Average calls
- 0.13x
- Total Self
- 0.21ms
- Total Children
- 0ms
- Total runtime
- 0.21ms
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/api_controller.rb:50
|
<1%
|
app/controllers/api/v1/api_controller.rb:50
- Average Self
-
2ms
- Average calls
- <0.01x
- Total Self
- <0.01ms
- Total Children
- 0ms
- Total runtime
- <0.01ms
SELECT `organizations`.* FROM `organizations` WHERE `organizations`.`api_access_token` = ? LIMIT ?
|