|
code
app/controllers/api/v1/gym_routes_controller.rb:221
|
56%
|
app/controllers/api/v1/gym_routes_controller.rb:221
- Average Self
-
37ms
- Average calls
- 1x
- Total Self
- 37ms
- Total Children
- 27ms
- Total runtime
- 65ms
Api::V1::GymRoutesController#create
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:224
|
13%
|
app/controllers/api/v1/gym_routes_controller.rb:224
- Average Self
-
2ms
- Average calls
- 4.3x
- Total Self
- 8.5ms
- Total Children
- 0ms
- Total runtime
- 8.5ms
BEGIN
INSERT INTO `gym_routes` (`name`, `height`, `climbing_type`, `hold_colors`, `tag_colors`, `sections`, `gym_sector_id`, `sections_count`, `max_grade_value`, `min_grade_value`, `max_grade_text`, `min_grade_text`, `opened_at`, `created_at`, `updated_at`, `anchor_number`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
sql
app/models/gym_route.rb:397
|
5%
|
app/models/gym_route.rb:397
- Average Self
-
1.4ms
- Average calls
- 2.5x
- Total Self
- 3.4ms
- Total Children
- 0ms
- Total runtime
- 3.4ms
BEGIN
SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_spaces`.`gym_id` INNER JOIN `gym_sectors` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND (`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
|
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.9ms
- Average calls
- 1x
- Total Self
- 2.9ms
- Total Children
- 65ms
- Total runtime
- 67ms
Rails::Engine#call
|
|
sql
app/models/gym_route.rb:143
|
2%
|
app/models/gym_route.rb:143
- Average Self
-
1.7ms
- Average calls
- 0.99x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
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 ?
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
2%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
SELECT `ip_black_lists`.* FROM `ip_black_lists` WHERE (block_expired_at <= NOW() OR block_expired_at IS NULL) AND `ip_black_lists`.`ip` IS NULL LIMIT ?
|
|
sql
app/models/gym_route.rb:113
|
2%
|
app/models/gym_route.rb:113
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ?
|
|
sql
app/controllers/concerns/gymable.rb:16
|
2%
|
app/controllers/concerns/gymable.rb:16
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `gyms`.* FROM `gyms` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND `gyms`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:413
|
2%
|
app/controllers/api/v1/gym_routes_controller.rb:413
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
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/controllers/api/v1/api_controller.rb:64
|
2%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/concerns/gym_roles_verification.rb:17
|
2%
|
app/controllers/concerns/gym_roles_verification.rb:17
- Average Self
-
1.5ms
- Average calls
- 1x
- Total Self
- 1.5ms
- Total Children
- 0ms
- Total runtime
- 1.5ms
SELECT `gym_administrators`.* FROM `gym_administrators` WHERE `gym_administrators`.`user_id` = ? AND `gym_administrators`.`gym_id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:417
|
2%
|
app/controllers/api/v1/gym_routes_controller.rb:417
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `gym_sectors`.* FROM `gym_sectors` WHERE (`gym_sectors`.`deleted_at` IS NULL OR `gym_sectors`.`deleted_at` > ?) AND `gym_sectors`.`id` = ? ORDER BY `gym_sectors`.`order` ASC LIMIT ?
|
|
sql
app/controllers/concerns/gym_roles_verification.rb:13
|
2%
|
app/controllers/concerns/gym_roles_verification.rb:13
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT ? AS one FROM `gym_administrators` WHERE `gym_administrators`.`gym_id` = ? AND `gym_administrators`.`user_id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/gym_routes_controller.rb:222
|
2%
|
app/controllers/api/v1/gym_routes_controller.rb:222
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `gym_openers`.* FROM `gym_openers` WHERE `gym_openers`.`id` IN (?)
|
|
sql
app/models/gym_route.rb:59
|
<1%
|
app/models/gym_route.rb:59
- Average Self
-
2ms
- Average calls
- 0.15x
- Total Self
- 0.31ms
- Total Children
- 0ms
- Total runtime
- 0.31ms
SELECT `gyms`.* FROM `gyms` INNER JOIN `gym_spaces` ON `gyms`.`id` = `gym_spaces`.`gym_id` INNER JOIN `gym_sectors` ON `gym_spaces`.`id` = `gym_sectors`.`gym_space_id` WHERE (`gyms`.`deleted_at` IS NULL OR `gyms`.`deleted_at` > ?) AND (`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 ?
|
|
sql
app/models/gym_route.rb:411
|
<1%
|
app/models/gym_route.rb:411
- Average Self
-
0.08ms
- Average calls
- 0.47x
- Total Self
- 0.04ms
- Total Children
- 0ms
- Total runtime
- 0.04ms
SELECT `gym_levels`.* FROM `gym_levels` WHERE `gym_levels`.`gym_id` = ? AND `gym_levels`.`climbing_type` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/api_controller.rb:50
|
<1%
|
app/controllers/api/v1/api_controller.rb:50
- Average Self
-
2ms
- 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 ?
|