|
code
app/controllers/api/v1/gym_spaces_controller.rb:24
|
56%
|
app/controllers/api/v1/gym_spaces_controller.rb:24
- Average Self
-
34ms
- Average calls
- 1x
- Total Self
- 34ms
- Total Children
- 24ms
- Total runtime
- 59ms
Api::V1::GymSpacesController#groups
|
|
sql
app/models/gym_space.rb:98
|
29%
|
app/models/gym_space.rb:98
- Average Self
-
3.9ms
- Average calls
- 4.6x
- Total Self
- 17ms
- Total Children
- 0ms
- Total runtime
- 17ms
SELECT MAX(opened_at) AS max_opened_at, COUNT(*) AS routes_count FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_routes`.`gym_sector_id` = `gym_sectors`.`id` WHERE (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND `gym_sectors`.`gym_space_id` = ? AND `gym_routes`.`dismounted_at` IS NULL ORDER BY `gym_sectors`.`order` ASC LIMIT ?
|
|
sql
app/controllers/api/v1/gym_spaces_controller.rb:31
|
4%
|
app/controllers/api/v1/gym_spaces_controller.rb:31
- Average Self
-
2.7ms
- Average calls
- 1x
- Total Self
- 2.7ms
- Total Children
- 0ms
- Total runtime
- 2.7ms
SELECT `gym_spaces`.* FROM `gym_spaces` LEFT JOIN gym_space_groups ON gym_space_groups.id = gym_spaces.gym_space_group_id WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`gym_id` = ? AND (`archived_at` IS NULL OR `archived_at` > ?) ORDER BY gym_space_groups.order IS NULL ASC, gym_space_groups.order, gym_spaces.order
|
|
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
-
2.4ms
- Average calls
- 1x
- Total Self
- 2.4ms
- Total Children
- 59ms
- Total runtime
- 62ms
Rails::Engine#call
|
|
sql
app/controllers/concerns/gymable.rb:16
|
4%
|
app/controllers/concerns/gymable.rb:16
- Average Self
-
2.2ms
- Average calls
- 1x
- Total Self
- 2.2ms
- Total Children
- 0ms
- Total runtime
- 2.2ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/gym_spaces_controller.rb:37
|
2%
|
app/controllers/api/v1/gym_spaces_controller.rb:37
- Average Self
-
1.8ms
- Average calls
- 0.82x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `gym_space_groups`.* FROM `gym_space_groups` WHERE `gym_space_groups`.`id` = ? ORDER BY `gym_space_groups`.`order` ASC LIMIT ?
|
|
sql
app/controllers/concerns/gym_roles_verification.rb:13
|
<1%
|
app/controllers/concerns/gym_roles_verification.rb:13
- Average Self
-
1.6ms
- Average calls
- 0.13x
- Total Self
- 0.2ms
- Total Children
- 0ms
- Total runtime
- 0.2ms
SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` = ? AND `gym_administrators`.`user_id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:73
|
<1%
|
app/controllers/api/v1/api_controller.rb:73
- Average Self
-
1.9ms
- Average calls
- 0.09x
- Total Self
- 0.17ms
- Total Children
- 0ms
- Total runtime
- 0.17ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|