|
sql
app/controllers/api/v1/statistics/cross_statistics_controller.rb:53
|
52%
|
app/controllers/api/v1/statistics/cross_statistics_controller.rb:53
- Average Self
-
1,438ms
- Average calls
- 1x
- Total Self
- 1,438ms
- Total Children
- 0ms
- Total runtime
- 1,438ms
SELECT COUNT(*) AS count, CONCAT(gym_spaces.name, " / ", gym_sectors.name) AS by_field, gym_routes.min_grade_value AS number_of FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_sectors`.`id` = `gym_routes`.`gym_sector_id` AND (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) INNER JOIN `gym_spaces` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` AND (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) WHERE `gym_spaces`.`gym_id` = ? AND `gym_spaces`.`archived_at` IS NULL AND `gym_spaces`.`deleted_at` IS NULL AND (gym_routes.dismounted_at IS NULL OR gym_routes.dismounted_at > ?) GROUP BY by_field, number_of ORDER BY by_field, number_of
|
|
sql
app/controllers/api/v1/statistics/cross_statistics_controller.rb:40
|
37%
|
app/controllers/api/v1/statistics/cross_statistics_controller.rb:40
- Average Self
-
1,026ms
- Average calls
- 1x
- Total Self
- 1,026ms
- Total Children
- 0ms
- Total runtime
- 1,026ms
SELECT DISTINCT gym_routes.min_grade_value AS distinct_number_of FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_sectors`.`id` = `gym_routes`.`gym_sector_id` AND (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) INNER JOIN `gym_spaces` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` AND (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) WHERE `gym_spaces`.`gym_id` = ? AND `gym_spaces`.`archived_at` IS NULL AND `gym_spaces`.`deleted_at` IS NULL AND `gym_routes`.`dismounted_at` IS NULL ORDER BY distinct_number_of
|
|
sql
app/controllers/concerns/gym_roles_verification.rb:13
|
4%
|
app/controllers/concerns/gym_roles_verification.rb:13
- Average Self
-
123ms
- Average calls
- 1x
- Total Self
- 123ms
- Total Children
- 0ms
- Total runtime
- 123ms
SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` = ? AND `gym_administrators`.`user_id` = ? LIMIT ?
|
|
sql
app/controllers/concerns/gymable.rb:16
|
2%
|
app/controllers/concerns/gymable.rb:16
- Average Self
-
68ms
- Average calls
- 1x
- Total Self
- 68ms
- Total Children
- 0ms
- Total runtime
- 68ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:64
|
2%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
52ms
- Average calls
- 1x
- Total Self
- 52ms
- Total Children
- 0ms
- Total runtime
- 52ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
code
app/controllers/api/v1/statistics/cross_statistics_controller.rb:9
|
2%
|
app/controllers/api/v1/statistics/cross_statistics_controller.rb:9
- Average Self
-
41ms
- Average calls
- 1x
- Total Self
- 41ms
- Total Children
- 2,707ms
- Total runtime
- 2,749ms
Api::V1::Statistics::CrossStatisticsController#index
|
|
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
-
2.3ms
- Average calls
- 1x
- Total Self
- 2.3ms
- Total Children
- 2,749ms
- Total runtime
- 2,751ms
Rails::Engine#call
|