|
code
app/controllers/api/v1/notifications_controller.rb:25
|
38%
|
app/controllers/api/v1/notifications_controller.rb:25
- Average Self
-
10ms
- Average calls
- 1x
- Total Self
- 10ms
- Total Children
- 13ms
- Total runtime
- 24ms
Api::V1::NotificationsController#read
|
|
sql
app/models/concerns/readable.rb:20
|
26%
|
app/models/concerns/readable.rb:20
- Average Self
-
2.4ms
- Average calls
- 3x
- Total Self
- 7ms
- Total Children
- 0ms
- Total runtime
- 7ms
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
|
10%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
2.8ms
- Average calls
- 1x
- Total Self
- 2.8ms
- Total Children
- 24ms
- Total runtime
- 27ms
Rails::Engine#call
|
|
sql
app/models/notification.rb:100
|
7%
|
app/models/notification.rb:100
- Average Self
-
1.9ms
- Average calls
- 1x
- Total Self
- 1.9ms
- Total Children
- 0ms
- Total runtime
- 1.9ms
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
|
5%
|
app/controllers/api/v1/notifications_controller.rb:38
- 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`.`id` = ? ORDER BY `notifications`.`posted_at` DESC LIMIT ?
|
|
redis
app/models/notification.rb:100
|
2%
|
app/models/notification.rb:100
- Average Self
-
0.51ms
- Average calls
- 1x
- Total Self
- 0.54ms
- Total Children
- 0.02ms
- Total runtime
- 0.56ms
select
|