|
code
app/controllers/api/embedded/gym_routes_controller.rb:8
|
56%
|
app/controllers/api/embedded/gym_routes_controller.rb:8
- Average Self
-
83ms
- Average calls
- 1x
- Total Self
- 83ms
- Total Children
- 62ms
- Total runtime
- 145ms
Api::Embedded::GymRoutesController#index
|
|
sql
app/controllers/api/embedded/gym_routes_controller.rb:40
|
23%
|
app/controllers/api/embedded/gym_routes_controller.rb:40
- Average Self
-
3.3ms
- Average calls
- 10x
- Total Self
- 33ms
- Total Children
- 0ms
- Total runtime
- 33ms
SELECT `gym_routes`.* FROM `gym_routes` INNER JOIN `gym_sectors` ON `gym_routes`.`gym_sector_id` = `gym_sectors`.`id` INNER JOIN `gym_spaces` ON `gym_sectors`.`gym_space_id` = `gym_spaces`.`id` INNER JOIN `gym_sectors` `gym_sectors_gym_routes` ON `gym_sectors_gym_routes`.`id` = `gym_routes`.`gym_sector_id` AND (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) INNER JOIN `gym_spaces` `gym_spaces_gym_sectors` ON `gym_spaces_gym_sectors`.`id` = `gym_sectors_gym_routes`.`gym_space_id` AND (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) WHERE (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`gym_id` = ? AND `gym_routes`.`dismounted_at` IS NULL AND `gym_sectors`.`gym_space_id` = ? AND `gym_sectors`.`id` = ? ORDER BY `gym_routes [TRUNCATED]
|
|
sql
app/models/gym_route.rb:135
|
18%
|
app/models/gym_route.rb:135
- Average Self
-
1.4ms
- Average calls
- 19x
- Total Self
- 27ms
- Total Children
- 0ms
- Total runtime
- 27ms
SELECT `gym_spaces`.* FROM `gym_spaces` INNER JOIN `gym_sectors` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND `gym_sectors`.`id` = ? ORDER BY `gym_spaces`.`order` ASC, `gym_sectors`.`order` ASC LIMIT ?
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
2%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
2.8ms
- Average calls
- 1x
- Total Self
- 2.8ms
- Total Children
- 145ms
- Total runtime
- 148ms
Rails::Engine#call
|
|
sql
app/controllers/api/embedded/gym_routes_controller.rb:66
|
1%
|
app/controllers/api/embedded/gym_routes_controller.rb:66
- Average Self
-
1.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|