|
code
app/controllers/api/v1/contest_participants_controller.rb:222
|
54%
|
app/controllers/api/v1/contest_participants_controller.rb:222
- Average Self
-
39ms
- Average calls
- 1x
- Total Self
- 39ms
- Total Children
- 30ms
- Total runtime
- 70ms
Api::V1::ContestParticipantsController#update
|
|
sql
app/controllers/api/v1/contest_participants_controller.rb:223
|
7%
|
app/controllers/api/v1/contest_participants_controller.rb:223
- Average Self
-
1.4ms
- Average calls
- 3.7x
- Total Self
- 5.2ms
- Total Children
- 0ms
- Total runtime
- 5.2ms
BEGIN
SELECT `contest_categories`.* FROM `contest_categories` WHERE `contest_categories`.`id` = ? ORDER BY `contest_categories`.`order` ASC LIMIT ?
|
|
sql
app/models/contest_service/result.rb:22
|
6%
|
app/models/contest_service/result.rb:22
- Average Self
-
4.3ms
- Average calls
- 1x
- Total Self
- 4.3ms
- Total Children
- 0ms
- Total runtime
- 4.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` = ?
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
4%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
3.2ms
- Average calls
- 1x
- Total Self
- 3.2ms
- Total Children
- 70ms
- Total runtime
- 73ms
Rails::Engine#call
|
|
sql
app/models/contest_participant.rb:312
|
3%
|
app/models/contest_participant.rb:312
- Average Self
-
2.3ms
- Average calls
- 1x
- Total Self
- 2.3ms
- Total Children
- 0ms
- Total runtime
- 2.3ms
SELECT ? AS one 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` != ? AND `contest_participants`.`first_name` = ? AND `contest_participants`.`last_name` = ? AND `contest_participants`.`date_of_birth` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/contest_participants_controller.rb:295
|
2%
|
app/controllers/api/v1/contest_participants_controller.rb:295
- Average Self
-
1.7ms
- Average calls
- 1x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
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
|
2%
|
app/controllers/concerns/gym_roles_verification.rb:17
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `gym_administrators`.* FROM `gym_administrators` WHERE `gym_administrators`.`user_id` = ? AND `gym_administrators`.`gym_id` = ? LIMIT ?
|
|
sql
app/models/contest_category.rb:103
|
2%
|
app/models/contest_category.rb:103
- 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/api/v1/api_controller.rb:64
|
2%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
2%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
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/controllers/api/v1/contest_participants_controller.rb:299
|
2%
|
app/controllers/api/v1/contest_participants_controller.rb:299
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
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:291
|
2%
|
app/controllers/api/v1/contest_participants_controller.rb:291
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/models/contest_category.rb:96
|
2%
|
app/models/contest_category.rb:96
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT COUNT(*) FROM `contest_participants` WHERE `contest_participants`.`contest_category_id` = ?
|
|
sql
app/models/contest_category.rb:97
|
2%
|
app/models/contest_category.rb:97
- Average Self
-
1.2ms
- Average calls
- 1x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT COUNT(*) FROM `contest_participants` WHERE `contest_participants`.`contest_category_id` = ? AND `contest_participants`.`genre` = ?
|
|
sql
app/controllers/api/v1/contest_participants_controller.rb:307
|
2%
|
app/controllers/api/v1/contest_participants_controller.rb:307
- Average Self
-
1.2ms
- Average calls
- 1x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT COUNT(*) FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` = ? AND `gym_administrators`.`user_id` = ?
|
|
sql
app/models/contest_category.rb:108
|
2%
|
app/models/contest_category.rb:108
- Average Self
-
1.2ms
- Average calls
- 1x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contests`.`id` = ? LIMIT ?
|
|
sql
app/models/contest_participant.rb:23
|
2%
|
app/models/contest_participant.rb:23
- Average Self
-
1.2ms
- Average calls
- 1x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.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 ?
|
|
sql
app/models/contest_participant.rb:218
|
2%
|
app/models/contest_participant.rb:218
- Average Self
-
1.2ms
- Average calls
- 1x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT `contest_categories`.* FROM `contest_categories` WHERE `contest_categories`.`contest_id` = ? ORDER BY `contest_categories`.`order` ASC
|
|
sql
app/models/contest_category.rb:98
|
1%
|
app/models/contest_category.rb:98
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT COUNT(*) FROM `contest_participants` WHERE `contest_participants`.`contest_category_id` = ? AND `contest_participants`.`genre` = ?
|
|
redis
app/controllers/api/v1/contest_participants_controller.rb:313
|
<1%
|
app/controllers/api/v1/contest_participants_controller.rb:313
- Average Self
-
0.5ms
- Average calls
- 1x
- Total Self
- 0.5ms
- Total Children
- 0ms
- Total runtime
- 0.5ms
publish
|