|
code
app/controllers/api/v1/conversations_controller.rb:38
|
44%
|
app/controllers/api/v1/conversations_controller.rb:38
- Average Self
-
13ms
- Average calls
- 1x
- Total Self
- 13ms
- Total Children
- 15ms
- Total runtime
- 29ms
Api::V1::ConversationsController#read
|
|
sql
app/models/conversation_user.rb:8
|
18%
|
app/models/conversation_user.rb:8
- Average Self
-
1.9ms
- Average calls
- 3x
- Total Self
- 5.7ms
- Total Children
- 0ms
- Total runtime
- 5.7ms
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.5ms
- Average calls
- 1x
- Total Self
- 2.5ms
- Total Children
- 29ms
- Total runtime
- 31ms
Rails::Engine#call
|
|
sql
app/models/conversation_user.rb:18
|
6%
|
app/models/conversation_user.rb:18
- Average Self
-
2ms
- Average calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
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
|
5%
|
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.7ms
- Average calls
- 1x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/models/conversation_user.rb:15
|
4%
|
app/models/conversation_user.rb:15
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 0ms
- Total runtime
- 1.4ms
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.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `conversation_users`.* FROM `conversation_users` WHERE `conversation_users`.`user_id` = ? AND `conversation_users`.`conversation_id` = ? LIMIT ?
|
|
sql
app/models/conversation_user.rb:19
|
3%
|
app/models/conversation_user.rb:19
- Average Self
-
0.94ms
- Average calls
- 0.85x
- Total Self
- 0.8ms
- Total Children
- 0ms
- Total runtime
- 0.8ms
SELECT `conversation_messages`.* FROM `conversation_messages` WHERE `conversation_messages`.`id` = ? LIMIT ?
|
|
sql
app/models/concerns/readable.rb:20
|
2%
|
app/models/concerns/readable.rb:20
- Average Self
-
1.6ms
- Average calls
- 0.45x
- Total Self
- 0.7ms
- Total Children
- 0ms
- Total runtime
- 0.7ms
BEGIN
UPDATE `notifications` SET `notifications`.`read_at` = ?, `notifications`.`updated_at` = ? WHERE `notifications`.`id` = ?
|
|
sql
app/models/notification.rb:100
|
<1%
|
app/models/notification.rb:100
- Average Self
-
1.7ms
- Average calls
- 0.15x
- Total Self
- 0.25ms
- Total Children
- 0ms
- Total runtime
- 0.25ms
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.6ms
- Average calls
- 0.25x
- Total Self
- 0.15ms
- Total Children
- 0ms
- Total runtime
- 0.15ms
select
|