|
code
app/controllers/api/v1/contest_route_groups_controller.rb:26
|
57%
|
app/controllers/api/v1/contest_route_groups_controller.rb:26
- Average Self
-
208ms
- Average calls
- 1x
- Total Self
- 208ms
- Total Children
- 156ms
- Total runtime
- 364ms
Api::V1::ContestRouteGroupsController#create
|
|
sql
app/controllers/api/v1/api_controller.rb:64
|
12%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
44ms
- Average calls
- 1x
- Total Self
- 44ms
- Total Children
- 0ms
- Total runtime
- 44ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/contest_route_groups_controller.rb:33
|
9%
|
app/controllers/api/v1/contest_route_groups_controller.rb:33
- Average Self
-
1.8ms
- Average calls
- 19x
- Total Self
- 34ms
- Total Children
- 0ms
- Total runtime
- 34ms
BEGIN
INSERT INTO `contest_routes` (`number`, `contest_route_group_id`, `created_at`, `updated_at`) VALUES (?, ?, ?, ?)
|
|
sql
app/models/contest_route.rb:80
|
3%
|
app/models/contest_route.rb:80
- Average Self
-
1.7ms
- Average calls
- 6.4x
- Total Self
- 10ms
- Total Children
- 0ms
- Total runtime
- 10ms
SELECT `contests`.* FROM `contests` INNER JOIN `contest_stages` ON `contests`.`id` = `contest_stages`.`contest_id` INNER JOIN `contest_stage_steps` ON `contest_stages`.`id` = `contest_stage_steps`.`contest_stage_id` INNER JOIN `contest_route_groups` ON `contest_stage_steps`.`id` = `contest_route_groups`.`contest_stage_step_id` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contest_route_groups`.`id` = ? ORDER BY `contest_stages`.`stage_order` ASC LIMIT ?
|
|
sql
app/models/contest_service/result.rb:22
|
3%
|
app/models/contest_service/result.rb:22
- Average Self
-
1.2ms
- Average calls
- 8.4x
- Total Self
- 9.9ms
- Total Children
- 0ms
- Total runtime
- 9.9ms
SELECT MAX(`contest_participant_ascents`.`registered_at`) FROM `contest_participant_ascents` INNER JOIN `contest_participants` ON `contest_participant_ascents`.`contest_participant_id` = `contest_participants`.`id` INNER JOIN `contest_categories` ON `contest_participants`.`contest_category_id` = `contest_categories`.`id` WHERE `contest_categories`.`contest_id` = ?
|
|
sql
app/controllers/api/v1/contest_route_groups_controller.rb:29
|
2%
|
app/controllers/api/v1/contest_route_groups_controller.rb:29
- Average Self
-
2.1ms
- Average calls
- 4x
- Total Self
- 8.4ms
- Total Children
- 0ms
- Total runtime
- 8.4ms
SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contests`.`id` = ? LIMIT ?
|
|
sql
app/models/contest_route.rb:79
|
2%
|
app/models/contest_route.rb:79
- Average Self
-
1.2ms
- Average calls
- 6.4x
- Total Self
- 8ms
- Total Children
- 0ms
- Total runtime
- 8ms
SELECT `contest_stage_steps`.* FROM `contest_stage_steps` INNER JOIN `contest_route_groups` ON `contest_stage_steps`.`id` = `contest_route_groups`.`contest_stage_step_id` WHERE `contest_route_groups`.`id` = ? LIMIT ?
|
|
sql
app/models/contest_route.rb:45
|
2%
|
app/models/contest_route.rb:45
- Average Self
-
1.2ms
- Average calls
- 6.4x
- Total Self
- 7.9ms
- Total Children
- 0ms
- Total runtime
- 7.9ms
SELECT `contest_judges`.* FROM `contest_judges` INNER JOIN `contest_judge_routes` ON `contest_judges`.`id` = `contest_judge_routes`.`contest_judge_id` WHERE `contest_judge_routes`.`contest_route_id` = ?
|
|
sql
app/models/concerns/attachment_resizable.rb:10
|
2%
|
app/models/concerns/attachment_resizable.rb:10
- Average Self
-
1.1ms
- Average calls
- 6.4x
- Total Self
- 7.3ms
- Total Children
- 0ms
- Total runtime
- 7.3ms
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/contest_route_groups_controller.rb:68
|
1%
|
app/controllers/api/v1/contest_route_groups_controller.rb:68
- Average Self
-
4.6ms
- Average calls
- 1x
- Total Self
- 4.6ms
- Total Children
- 0ms
- Total runtime
- 4.6ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`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
- 364ms
- Total runtime
- 367ms
Rails::Engine#call
|
|
sql
app/models/contest_route_group.rb:101
|
<1%
|
app/models/contest_route_group.rb:101
- Average Self
-
1.4ms
- Average calls
- 2x
- Total Self
- 2.9ms
- Total Children
- 0ms
- Total runtime
- 2.9ms
BEGIN
SELECT `contests`.* FROM `contests` INNER JOIN `contest_stages` ON `contests`.`id` = `contest_stages`.`contest_id` INNER JOIN `contest_stage_steps` ON `contest_stages`.`id` = `contest_stage_steps`.`contest_stage_id` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contest_stage_steps`.`id` = ? ORDER BY `contest_stages`.`stage_order` ASC LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
<1%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1.9ms
- Average calls
- 1x
- Total Self
- 1.9ms
- Total Children
- 0ms
- Total runtime
- 1.9ms
SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW() OR block_expired_at IS NULL) AND `ip_black_lists`.`ip` IS NULL LIMIT ?
|
|
sql
app/models/contest_route_group.rb:46
|
<1%
|
app/models/contest_route_group.rb:46
- Average Self
-
1.9ms
- Average calls
- 1x
- Total Self
- 1.9ms
- Total Children
- 0ms
- Total runtime
- 1.9ms
SELECT `contest_routes`.* FROM `contest_routes` WHERE `contest_routes`.`contest_route_group_id` = ? ORDER BY `contest_routes`.`number` ASC
|
|
sql
app/models/contest_route_group_category.rb:14
|
<1%
|
app/models/contest_route_group_category.rb:14
- Average Self
-
1.9ms
- Average calls
- 1x
- Total Self
- 1.9ms
- Total Children
- 0ms
- Total runtime
- 1.9ms
SELECT `contests`.* FROM `contests` INNER JOIN `contest_categories` ON `contests`.`id` = `contest_categories`.`contest_id` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contest_categories`.`id` = ? ORDER BY `contest_categories`.`order` ASC LIMIT ?
|
|
sql
app/models/contest_route_group.rb:47
|
<1%
|
app/models/contest_route_group.rb:47
- Average Self
-
1.7ms
- Average calls
- 1x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
SELECT `contest_time_blocks`.* FROM `contest_time_blocks` WHERE `contest_time_blocks`.`contest_route_group_id` = ?
|
|
sql
app/models/contest_route_group.rb:109
|
<1%
|
app/models/contest_route_group.rb:109
- Average Self
-
1.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
SELECT `contest_route_groups`.* FROM `contest_route_groups` WHERE `contest_route_groups`.`contest_stage_step_id` = ? AND `contest_route_groups`.`id` IS NOT NULL
|
|
sql
app/controllers/api/v1/contest_route_groups_controller.rb:80
|
<1%
|
app/controllers/api/v1/contest_route_groups_controller.rb:80
- Average Self
-
1.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
SELECT `contest_stage_steps`.* FROM `contest_stage_steps` WHERE `contest_stage_steps`.`contest_stage_id` = ? AND `contest_stage_steps`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/contest_route_groups_controller.rb:27
|
<1%
|
app/controllers/api/v1/contest_route_groups_controller.rb:27
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `contest_categories`.* FROM `contest_categories` WHERE `contest_categories`.`id` = ? ORDER BY `contest_categories`.`order` ASC
|
|
sql
app/controllers/concerns/gym_roles_verification.rb:17
|
<1%
|
app/controllers/concerns/gym_roles_verification.rb:17
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `gym_administrators`.* FROM `gym_administrators` WHERE `gym_administrators`.`user_id` = ? AND `gym_administrators`.`gym_id` = ? LIMIT ?
|
|
sql
app/models/contest_route_group.rb:83
|
<1%
|
app/models/contest_route_group.rb:83
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `contest_participants`.* FROM `contest_participants` INNER JOIN `contest_categories` ON `contest_participants`.`contest_category_id` = `contest_categories`.`id` WHERE `contest_categories`.`contest_id` = ? ORDER BY `contest_categories`.`order` ASC
|
|
sql
app/controllers/api/v1/contest_route_groups_controller.rb:92
|
<1%
|
app/controllers/api/v1/contest_route_groups_controller.rb:92
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT COUNT(*) FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` = ? AND `gym_administrators`.`user_id` = ?
|
|
sql
app/controllers/api/v1/contest_route_groups_controller.rb:72
|
<1%
|
app/controllers/api/v1/contest_route_groups_controller.rb:72
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contests`.`gym_id` = ? AND `contests`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/contest_route_groups_controller.rb:76
|
<1%
|
app/controllers/api/v1/contest_route_groups_controller.rb:76
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `contest_stages`.* FROM `contest_stages` WHERE `contest_stages`.`contest_id` = ? AND `contest_stages`.`id` = ? ORDER BY `contest_stages`.`stage_order` ASC LIMIT ?
|