|
code
app/controllers/api/v1/contest_participants_controller.rb:231
|
62%
|
app/controllers/api/v1/contest_participants_controller.rb:231
- Average Self
-
157ms
- Calls
- 1x
- Total Self
- 157ms
- Total Children
- 96ms
- Total runtime
- 253ms
Api::V1::ContestParticipantsController#destroy
|
|
sql
app/models/contest_service/result.rb:22
|
12%
|
app/models/contest_service/result.rb:22
- Average Self
-
1.7ms
- Calls
- 18x
- Total Self
- 31ms
- Total Children
- 0ms
- Total runtime
- 31ms
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_participants_controller.rb:232
|
11%
|
app/controllers/api/v1/contest_participants_controller.rb:232
- Average Self
-
1.2ms
- Calls
- 22x
- Total Self
- 27ms
- Total Children
- 0ms
- Total runtime
- 27ms
BEGIN
SELECT `contest_participant_ascents`.* FROM `contest_participant_ascents` WHERE `contest_participant_ascents`.`contest_participant_id` = ?
|
|
sql
app/models/contest_participant_ascent.rb:45
|
9%
|
app/models/contest_participant_ascent.rb:45
- Average Self
-
1.5ms
- Calls
- 15x
- Total Self
- 22ms
- Total Children
- 0ms
- Total runtime
- 22ms
SELECT `contests`.* FROM `contests` INNER JOIN `contest_categories` ON `contests`.`id` = `contest_categories`.`contest_id` INNER JOIN `contest_participants` ON `contest_categories`.`id` = `contest_participants`.`contest_category_id` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contest_participants`.`id` = ? ORDER BY `contest_categories`.`order` ASC LIMIT ?
|
|
sql
app/models/contest_participant_step.rb:15
|
1%
|
app/models/contest_participant_step.rb:15
- Average Self
-
1.5ms
- Calls
- 2x
- Total Self
- 3ms
- Total Children
- 0ms
- Total runtime
- 3ms
SELECT `contests`.* FROM `contests` INNER JOIN `contest_categories` ON `contests`.`id` = `contest_categories`.`contest_id` INNER JOIN `contest_participants` ON `contest_categories`.`id` = `contest_participants`.`contest_category_id` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contest_participants`.`id` = ? ORDER BY `contest_categories`.`order` ASC LIMIT ?
|
|
sql
app/models/contest_participant.rb:218
|
<1%
|
app/models/contest_participant.rb:218
- Average Self
-
1ms
- Calls
- 2x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
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 ?
|
|
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
-
2ms
- Calls
- 1x
- Total Self
- 2ms
- Total Children
- 253ms
- Total runtime
- 255ms
Rails::Engine#call
|
|
sql
app/controllers/api/v1/api_controller.rb:64
|
<1%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
2ms
- Calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/contest_participants_controller.rb:291
|
<1%
|
app/controllers/api/v1/contest_participants_controller.rb:291
- Average Self
-
2ms
- Calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/contest_participants_controller.rb:299
|
<1%
|
app/controllers/api/v1/contest_participants_controller.rb:299
- Average Self
-
2ms
- Calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
SELECT `contest_participants`.* FROM `contest_participants` INNER JOIN `contest_categories` ON `contest_participants`.`contest_category_id` = `contest_categories`.`id` WHERE `contest_categories`.`contest_id` = ? AND `contest_participants`.`id` = ? ORDER BY `contest_categories`.`order` ASC LIMIT ?
|
|
sql
app/controllers/api/v1/contest_participants_controller.rb:307
|
<1%
|
app/controllers/api/v1/contest_participants_controller.rb:307
- Average Self
-
2ms
- Calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
SELECT COUNT(*) FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` = ? AND `gym_administrators`.`user_id` = ?
|
|
sql
app/controllers/api/v1/contest_participants_controller.rb:295
|
<1%
|
app/controllers/api/v1/contest_participants_controller.rb:295
- Average Self
-
1ms
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
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/concerns/gym_roles_verification.rb:17
|
<1%
|
app/controllers/concerns/gym_roles_verification.rb:17
- Average Self
-
1ms
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
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:26
|
<1%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1ms
- Calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
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 ?
|