|
code
app/controllers/api/v1/contest_categories_controller.rb:15
|
58%
|
app/controllers/api/v1/contest_categories_controller.rb:15
- Average Self
-
11ms
- Average calls
- 1x
- Total Self
- 11ms
- Total Children
- 5.5ms
- Total runtime
- 16ms
Api::V1::ContestCategoriesController#index
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
13%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
2.5ms
- Average calls
- 1x
- Total Self
- 2.5ms
- Total Children
- 16ms
- Total runtime
- 19ms
Rails::Engine#call
|
|
sql
app/controllers/api/v1/contest_categories_controller.rb:57
|
10%
|
app/controllers/api/v1/contest_categories_controller.rb:57
- Average Self
-
1.9ms
- Average calls
- 1x
- Total Self
- 1.9ms
- Total Children
- 0ms
- Total runtime
- 1.9ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/contest_categories_controller.rb:61
|
8%
|
app/controllers/api/v1/contest_categories_controller.rb:61
- Average Self
-
1.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
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_categories_controller.rb:16
|
8%
|
app/controllers/api/v1/contest_categories_controller.rb:16
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `contest_categories`.* FROM `contest_categories` WHERE `contest_categories`.`contest_id` = ? ORDER BY `contest_categories`.`order` ASC
|
|
sql
app/models/contest_category.rb:103
|
<1%
|
app/models/contest_category.rb:103
- Average Self
-
2.3ms
- Average calls
- 0.06x
- Total Self
- 0.15ms
- Total Children
- 0ms
- Total runtime
- 0.15ms
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/models/contest_category.rb:96
|
<1%
|
app/models/contest_category.rb:96
- Average Self
-
2ms
- Average calls
- 0.06x
- Total Self
- 0.13ms
- Total Children
- 0ms
- Total runtime
- 0.13ms
SELECT COUNT(*) FROM `contest_participants` WHERE `contest_participants`.`contest_category_id` = ?
|
|
sql
app/models/contest_category.rb:97
|
<1%
|
app/models/contest_category.rb:97
- Average Self
-
1.7ms
- Average calls
- 0.06x
- Total Self
- 0.1ms
- Total Children
- 0ms
- Total runtime
- 0.1ms
SELECT COUNT(*) FROM `contest_participants` WHERE `contest_participants`.`contest_category_id` = ? AND `contest_participants`.`genre` = ?
|
|
sql
app/models/contest_category.rb:98
|
<1%
|
app/models/contest_category.rb:98
- Average Self
-
1.7ms
- Average calls
- 0.06x
- Total Self
- 0.1ms
- Total Children
- 0ms
- Total runtime
- 0.1ms
SELECT COUNT(*) FROM `contest_participants` WHERE `contest_participants`.`contest_category_id` = ? AND `contest_participants`.`genre` = ?
|