|
code
app/controllers/api/v1/contests_controller.rb:36
|
61%
|
app/controllers/api/v1/contests_controller.rb:36
- Average Self
-
17ms
- Average calls
- 1x
- Total Self
- 17ms
- Total Children
- 8.7ms
- Total runtime
- 26ms
Api::V1::ContestsController#index
|
|
sql
app/models/contest.rb:49
|
20%
|
app/models/contest.rb:49
- Average Self
-
0.94ms
- Average calls
- 6x
- Total Self
- 5.7ms
- Total Children
- 0ms
- Total runtime
- 5.7ms
SELECT COUNT(*) FROM `contest_participants` 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
|
9%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
2.7ms
- Average calls
- 1x
- Total Self
- 2.7ms
- Total Children
- 26ms
- Total runtime
- 29ms
Rails::Engine#call
|
|
sql
app/controllers/api/v1/contests_controller.rb:41
|
7%
|
app/controllers/api/v1/contests_controller.rb:41
- Average Self
-
2ms
- Average calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
SELECT `contests`.* FROM `contests` WHERE (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) AND `contests`.`gym_id` = ? ORDER BY `contests`.`archived_at` ASC, `contests`.`start_date` DESC
|
|
sql
app/controllers/api/v1/contests_controller.rb:148
|
3%
|
app/controllers/api/v1/contests_controller.rb:148
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|