|
code
app/controllers/api/v1/current_users_controller.rb:203
|
49%
|
app/controllers/api/v1/current_users_controller.rb:203
- Average Self
-
6.7ms
- Average calls
- 1x
- Total Self
- 6.7ms
- Total Children
- 4.4ms
- Total runtime
- 11ms
Api::V1::CurrentUsersController#upcoming_contests
|
|
sql
app/controllers/api/v1/current_users_controller.rb:209
|
20%
|
app/controllers/api/v1/current_users_controller.rb:209
- Average Self
-
2.7ms
- Average calls
- 0.98x
- Total Self
- 2.7ms
- Total Children
- 0ms
- Total runtime
- 2.7ms
SELECT `contest_participants`.* FROM `contest_participants` INNER JOIN `contest_categories` ON `contest_categories`.`id` = `contest_participants`.`contest_category_id` INNER JOIN `contests` ON `contests`.`id` = `contest_categories`.`contest_id` AND (`contests`.`deleted_at` IS NULL OR `contests`.`deleted_at` > ?) WHERE `contest_participants`.`user_id` = ? AND (contests.end_date >= ?) AND (contests.subscription_start_date <= ?)
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
19%
|
/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
- 11ms
- Total runtime
- 13ms
Rails::Engine#call
|
|
sql
app/controllers/api/v1/api_controller.rb:64
|
12%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.6ms
- Average calls
- 0.99x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/current_users_controller.rb:210
|
<1%
|
app/controllers/api/v1/current_users_controller.rb:210
- Average Self
-
1.4ms
- Average calls
- 0.04x
- Total Self
- 0.06ms
- Total Children
- 0ms
- Total runtime
- 0.06ms
SELECT `contest_categories`.* FROM `contest_categories` WHERE `contest_categories`.`id` = ? ORDER BY `contest_categories`.`order` ASC LIMIT ?
|
|
sql
app/models/contest.rb:49
|
<1%
|
app/models/contest.rb:49
- Average Self
-
2ms
- Average calls
- 0.01x
- Total Self
- 0.02ms
- Total Children
- 0ms
- Total runtime
- 0.02ms
SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON `contest_participants`.`contest_category_id` = `contest_categories`.`id` WHERE `contest_categories`.`contest_id` = ?
|
|
sql
app/models/concerns/attachment_resizable.rb:10
|
<1%
|
app/models/concerns/attachment_resizable.rb:10
- Average Self
-
2ms
- Average calls
- <0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `active_storage_attachments`.`record_id` = ? AND `active_storage_attachments`.`record_type` = ? AND `active_storage_attachments`.`name` = ? LIMIT ?
|
|
sql
app/models/contest.rb:61
|
<1%
|
app/models/contest.rb:61
- Average Self
-
2ms
- Average calls
- <0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/models/contest.rb:114
|
<1%
|
app/models/contest.rb:114
- Average Self
-
1ms
- Average calls
- <0.01x
- Total Self
- <0.01ms
- Total Children
- 0ms
- Total runtime
- <0.01ms
SELECT COUNT(*) FROM `contest_participants` INNER JOIN `contest_categories` ON `contest_participants`.`contest_category_id` = `contest_categories`.`id` WHERE `contest_categories`.`contest_id` = ?
|