|
code
app/controllers/api/v1/notifications_controller.rb:21
|
53%
|
app/controllers/api/v1/notifications_controller.rb:21
- Average Self
-
5.6ms
- Average calls
- 1x
- Total Self
- 5.6ms
- Total Children
- 2.7ms
- Total runtime
- 8.2ms
Api::V1::NotificationsController#unread_count
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
22%
|
/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
- 8.2ms
- Total runtime
- 10ms
Rails::Engine#call
|
|
sql
app/controllers/api/v1/notifications_controller.rb:22
|
13%
|
app/controllers/api/v1/notifications_controller.rb:22
- Average Self
-
1.8ms
- Average calls
- 0.77x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT COUNT(*) FROM `notifications` WHERE `notifications`.`user_id` = ? AND `notifications`.`read_at` IS NULL
|
|
sql
app/controllers/api/v1/api_controller.rb:64
|
12%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.7ms
- Average calls
- 0.77x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|