|
code
app/controllers/api/v1/notifications_controller.rb:25
|
37%
|
app/controllers/api/v1/notifications_controller.rb:25
- Average Self
-
10ms
- Average calls
- 1x
- Total Self
- 10ms
- Total Children
- 14ms
- Total runtime
- 24ms
Api::V1::NotificationsController#read
|
|
sql
app/models/concerns/readable.rb:20
|
25%
|
app/models/concerns/readable.rb:20
- Average Self
-
2.3ms
- Average calls
- 3x
- Total Self
- 6.8ms
- Total Children
- 0ms
- Total runtime
- 6.8ms
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
|
12%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
3.2ms
- Average calls
- 1x
- Total Self
- 3.2ms
- Total Children
- 24ms
- Total runtime
- 27ms
Rails::Engine#call
|
|
sql
app/models/notification.rb:100
|
9%
|
app/models/notification.rb:100
- Average Self
-
2.3ms
- Average calls
- 1x
- Total Self
- 2.3ms
- Total Children
- 0ms
- Total runtime
- 2.3ms
SELECT COUNT(*) FROM `notifications` WHERE `notifications`.`user_id` = ? AND `notifications`.`read_at` IS NULL
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
6%
|
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
|
5%
|
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/api/v1/notifications_controller.rb:38
|
4%
|
app/controllers/api/v1/notifications_controller.rb:38
- Average Self
-
1.2ms
- Average calls
- 1x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT `notifications`.* FROM `notifications` WHERE `notifications`.`user_id` = ? AND `notifications`.`id` = ? ORDER BY `notifications`.`posted_at` DESC LIMIT ?
|
|
redis
app/models/notification.rb:100
|
2%
|
app/models/notification.rb:100
- Average Self
-
0.5ms
- Average calls
- 1x
- Total Self
- 0.5ms
- Total Children
- 0ms
- Total runtime
- 0.5ms
publish
|