|
code
app/controllers/api/v1/gym_routes_controller.rb:84
|
64%
|
app/controllers/api/v1/gym_routes_controller.rb:84
- Average Self
-
52ms
- Average calls
- 1x
- Total Self
- 52ms
- Total Children
- 26ms
- Total runtime
- 78ms
Api::V1::GymRoutesController#paginated
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:142
|
26%
|
app/controllers/api/v1/gym_routes_controller.rb:142
- Average Self
-
3.6ms
- Average calls
- 5.8x
- Total Self
- 20ms
- Total Children
- 0ms
- Total runtime
- 20ms
SELECT `gym_routes`.* 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 AND `gym_routes`.`gym_sector_id` = ? ORDER BY gym_routes.level_index DESC, gym_routes.id LIMIT ? OFFSET ?
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
3%
|
/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
- 78ms
- Total runtime
- 80ms
Rails::Engine#call
|
|
sql
app/controllers/concerns/gymable.rb:16
|
2%
|
app/controllers/concerns/gymable.rb:16
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/models/gym_route_ascents_mapper.rb:26
|
2%
|
app/models/gym_route_ascents_mapper.rb:26
- Average Self
-
1.4ms
- Average calls
- 0.88x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`user_id` = ? AND ?=?
|
|
sql
app/controllers/api/v1/api_controller.rb:73
|
1%
|
app/controllers/api/v1/api_controller.rb:73
- Average Self
-
1.2ms
- Average calls
- 0.88x
- Total Self
- 1.1ms
- Total Children
- 0ms
- Total runtime
- 1.1ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:413
|
<1%
|
app/controllers/api/v1/gym_routes_controller.rb:413
- Average Self
-
1.1ms
- Average calls
- 0.71x
- Total Self
- 0.77ms
- Total Children
- 0ms
- Total runtime
- 0.77ms
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`id` = ? ORDER BY `gym_spaces`.`order` ASC LIMIT ?
|
|
sql
app/models/gym_route_ascents_mapper.rb:29
|
<1%
|
app/models/gym_route_ascents_mapper.rb:29
- Average Self
-
1.7ms
- Average calls
- 0.34x
- Total Self
- 0.58ms
- Total Children
- 0ms
- Total runtime
- 0.58ms
SELECT `ascents`.* FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`user_id` = ? AND `ascents`.`gym_route_id` IN (?) ORDER BY FIELD(ascent_status, "onsight", "flash", "red_point", "sent", "repetition", "project")
|
|
sql
app/models/gym_route.rb:132
|
<1%
|
app/models/gym_route.rb:132
- Average Self
-
1.3ms
- Average calls
- 0.44x
- Total Self
- 0.58ms
- Total Children
- 0ms
- Total runtime
- 0.58ms
SELECT `gym_spaces`.* FROM `gym_spaces` WHERE (`gym_spaces`.`deleted_at` IS NULL OR `gym_spaces`.`deleted_at` > ?) AND `gym_spaces`.`id` = ? ORDER BY `gym_spaces`.`order` ASC LIMIT ?
|
|
sql
app/models/gym_route_ascents_mapper.rb:28
|
<1%
|
app/models/gym_route_ascents_mapper.rb:28
- Average Self
-
0.07ms
- Average calls
- 0.34x
- Total Self
- 0.02ms
- Total Children
- 0ms
- Total runtime
- 0.02ms
SELECT COUNT(*) FROM `ascents` WHERE `ascents`.`type` = ? AND `ascents`.`user_id` = ? AND `ascents`.`gym_route_id` IN (?)
|
|
sql
app/controllers/api/v1/api_controller.rb:50
|
<1%
|
app/controllers/api/v1/api_controller.rb:50
- Average Self
-
1ms
- Average calls
- <0.01x
- Total Self
- <0.01ms
- Total Children
- 0ms
- Total runtime
- <0.01ms
SELECT `organizations`.* FROM `organizations` WHERE `organizations`.`api_access_token` = ? LIMIT ?
|