|
code
app/controllers/api/v1/gym_spaces_controller.rb:24
|
54%
|
app/controllers/api/v1/gym_spaces_controller.rb:24
- Average Self
-
29ms
- Average calls
- 1x
- Total Self
- 29ms
- Total Children
- 22ms
- Total runtime
- 52ms
Api::V1::GymSpacesController#groups
|
|
sql
app/models/gym_space.rb:98
|
30%
|
app/models/gym_space.rb:98
- Average Self
-
3.9ms
- Average calls
- 4.3x
- Total Self
- 16ms
- Total Children
- 0ms
- Total runtime
- 16ms
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
|
5%
|
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
- 52ms
- Total runtime
- 54ms
Rails::Engine#call
|
|
sql
app/controllers/concerns/gymable.rb:16
|
4%
|
app/controllers/concerns/gymable.rb:16
- Average Self
-
2.1ms
- Average calls
- 1x
- Total Self
- 2.1ms
- Total Children
- 0ms
- Total runtime
- 2.1ms
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.6ms
- Average calls
- 0.6x
- Total Self
- 0.97ms
- Total Children
- 0ms
- Total runtime
- 0.97ms
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.1ms
- Average calls
- 0.12x
- Total Self
- 0.13ms
- Total Children
- 0ms
- Total runtime
- 0.13ms
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.7ms
- Average calls
- 0.07x
- Total Self
- 0.13ms
- Total Children
- 0ms
- Total runtime
- 0.13ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/models/concerns/soft_deletable.rb:7
|
<1%
|
app/models/concerns/soft_deletable.rb:7
- Average Self
-
2ms
- Average calls
- <0.01x
- Total Self
- 0.01ms
- Total Children
- 0ms
- Total runtime
- 0.01ms
SET NAMES utf8mb4, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ?), ?), @@SESSION.sql_auto_is_null = ?, @@SESSION.wait_timeout = ?
|