|
code
app/controllers/api/v1/notifications_controller.rb:30
|
39%
|
app/controllers/api/v1/notifications_controller.rb:30
- Average Self
-
8.1ms
- Average calls
- 1x
- Total Self
- 8.1ms
- Total Children
- 10ms
- Total runtime
- 18ms
Api::V1::NotificationsController#read_all
|
|
sql
app/models/concerns/readable.rb:20
|
20%
|
app/models/concerns/readable.rb:20
- Average Self
-
2.5ms
- Average calls
- 1.7x
- Total Self
- 4.3ms
- Total Children
- 0ms
- Total runtime
- 4.3ms
BEGIN
UPDATE `notifications` SET `notifications`.`read_at` = ?, `notifications`.`updated_at` = ? WHERE `notifications`.`id` = ?
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
13%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
2.7ms
- Average calls
- 1x
- Total Self
- 2.7ms
- Total Children
- 18ms
- Total runtime
- 21ms
Rails::Engine#call
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
8%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1.7ms
- Average calls
- 1x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
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/controllers/api/v1/api_controller.rb:64
|
7%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.6ms
- Average calls
- 1x
- Total Self
- 1.6ms
- Total Children
- 0ms
- Total runtime
- 1.6ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/notifications_controller.rb:31
|
7%
|
app/controllers/api/v1/notifications_controller.rb:31
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `notifications`.* FROM `notifications` WHERE `notifications`.`user_id` = ? AND `notifications`.`read_at` IS NULL ORDER BY `notifications`.`posted_at` DESC
|
|
sql
app/models/notification.rb:100
|
5%
|
app/models/notification.rb:100
- Average Self
-
1.8ms
- Average calls
- 0.57x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT COUNT(*) FROM `notifications` WHERE `notifications`.`user_id` = ? AND `notifications`.`read_at` IS NULL
|
|
redis
app/models/notification.rb:100
|
<1%
|
app/models/notification.rb:100
- Average Self
-
0.25ms
- Average calls
- 0.57x
- Total Self
- 0.14ms
- Total Children
- 0ms
- Total runtime
- 0.14ms
publish
|