|
code
app/controllers/api/v1/contest_stages_controller.rb:23
|
51%
|
app/controllers/api/v1/contest_stages_controller.rb:23
- Average Self
-
22ms
- Average calls
- 1x
- Total Self
- 22ms
- Total Children
- 18ms
- Total runtime
- 40ms
Api::V1::ContestStagesController#create
|
|
sql
app/controllers/api/v1/contest_stages_controller.rb:26
|
11%
|
app/controllers/api/v1/contest_stages_controller.rb:26
- Average Self
-
2.4ms
- Average calls
- 2x
- Total Self
- 4.9ms
- Total Children
- 0ms
- Total runtime
- 4.9ms
INSERT INTO `contest_stages` (`climbing_type`, `name`, `stage_order`, `contest_id`, `created_at`, `updated_at`) VALUES (?, ?, ?, ?, ?, ?)
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
6%
|
/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
- 40ms
- Total runtime
- 43ms
Rails::Engine#call
|
|
sql
app/models/contest_stage.rb:72
|
5%
|
app/models/contest_stage.rb:72
- Average Self
-
1ms
- Average calls
- 2x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
BEGIN
SELECT `contest_stages`.* FROM `contest_stages` WHERE `contest_stages`.`contest_id` = ? ORDER BY `contest_stages`.`stage_order` DESC LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
4%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
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_stage.rb:36
|
3%
|
app/models/contest_stage.rb:36
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `gyms`.* FROM `gyms` INNER JOIN `contests` ON `gyms`.`id` = `contests`.`gym_id` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contests`.`id` = ? LIMIT ?
|
|
sql
app/controllers/concerns/gym_roles_verification.rb:17
|
3%
|
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/controllers/api/v1/api_controller.rb:64
|
3%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/models/contest_service/result.rb:22
|
3%
|
app/models/contest_service/result.rb:22
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
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_stages_controller.rb:56
|
3%
|
app/controllers/api/v1/contest_stages_controller.rb:56
- 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_stages_controller.rb:68
|
3%
|
app/controllers/api/v1/contest_stages_controller.rb:68
- Average Self
-
1.1ms
- Average calls
- 1x
- Total Self
- 1.1ms
- Total Children
- 0ms
- Total runtime
- 1.1ms
SELECT COUNT(*) FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` = ? AND `gym_administrators`.`user_id` = ?
|
|
sql
app/controllers/api/v1/contest_stages_controller.rb:52
|
3%
|
app/controllers/api/v1/contest_stages_controller.rb:52
- 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/models/contest_stage.rb:65
|
2%
|
app/models/contest_stage.rb:65
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `contest_stage_steps`.* FROM `contest_stage_steps` WHERE `contest_stage_steps`.`contest_stage_id` = ?
|