|
code
app/controllers/api/v1/conversations_controller.rb:38
|
40%
|
app/controllers/api/v1/conversations_controller.rb:38
- Average Self
-
12ms
- Average calls
- 1x
- Total Self
- 12ms
- Total Children
- 16ms
- Total runtime
- 29ms
Api::V1::ConversationsController#read
|
|
sql
app/models/conversation_user.rb:8
|
20%
|
app/models/conversation_user.rb:8
- Average Self
-
2.1ms
- Average calls
- 2.9x
- Total Self
- 6.2ms
- Total Children
- 0ms
- Total runtime
- 6.2ms
BEGIN
UPDATE `conversation_users` SET `conversation_users`.`last_read_at` = ?, `conversation_users`.`updated_at` = ? WHERE `conversation_users`.`id` = ?
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
8%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
2.4ms
- Average calls
- 1x
- Total Self
- 2.4ms
- Total Children
- 29ms
- Total runtime
- 31ms
Rails::Engine#call
|
|
sql
app/models/conversation_user.rb:18
|
7%
|
app/models/conversation_user.rb:18
- Average Self
-
2.3ms
- Average calls
- 1x
- Total Self
- 2.3ms
- Total Children
- 0ms
- Total runtime
- 2.3ms
SELECT `notifications`.* FROM `notifications` WHERE `notifications`.`user_id` = ? AND `notifications`.`read_at` IS NULL AND `notifications`.`notifiable_type` = ? ORDER BY `notifications`.`posted_at` DESC
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
6%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1.8ms
- Average calls
- 1x
- Total Self
- 1.8ms
- Total Children
- 0ms
- Total runtime
- 1.8ms
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.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/models/conversation_user.rb:15
|
5%
|
app/models/conversation_user.rb:15
- 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/conversations_controller.rb:39
|
4%
|
app/controllers/api/v1/conversations_controller.rb:39
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
SELECT `conversation_users`.* FROM `conversation_users` WHERE `conversation_users`.`user_id` = ? AND `conversation_users`.`conversation_id` = ? LIMIT ?
|
|
sql
app/models/concerns/readable.rb:20
|
2%
|
app/models/concerns/readable.rb:20
- Average Self
-
1.8ms
- Average calls
- 0.37x
- Total Self
- 0.67ms
- Total Children
- 0ms
- Total runtime
- 0.67ms
BEGIN
UPDATE `notifications` SET `notifications`.`read_at` = ?, `notifications`.`updated_at` = ? WHERE `notifications`.`id` = ?
|
|
sql
app/models/conversation_user.rb:19
|
2%
|
app/models/conversation_user.rb:19
- Average Self
-
0.95ms
- Average calls
- 0.59x
- Total Self
- 0.56ms
- Total Children
- 0ms
- Total runtime
- 0.56ms
SELECT `conversation_messages`.* FROM `conversation_messages` WHERE `conversation_messages`.`id` = ? LIMIT ?
|
|
sql
app/models/notification.rb:100
|
<1%
|
app/models/notification.rb:100
- Average Self
-
1.7ms
- Average calls
- 0.12x
- Total Self
- 0.21ms
- Total Children
- 0ms
- Total runtime
- 0.21ms
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.67ms
- Average calls
- 0.14x
- Total Self
- 0.1ms
- Total Children
- 0ms
- Total runtime
- 0.1ms
select
|