|
code
app/controllers/api/v1/conversation_messages_controller.rb:35
|
45%
|
app/controllers/api/v1/conversation_messages_controller.rb:35
- Average Self
-
28ms
- Average calls
- 1x
- Total Self
- 28ms
- Total Children
- 32ms
- Total runtime
- 60ms
Api::V1::ConversationMessagesController#create
|
|
sql
app/controllers/api/v1/conversation_messages_controller.rb:39
|
10%
|
app/controllers/api/v1/conversation_messages_controller.rb:39
- Average Self
-
2.1ms
- Average calls
- 3x
- Total Self
- 6.3ms
- Total Children
- 0ms
- Total runtime
- 6.3ms
BEGIN
INSERT INTO `conversation_messages` (`body`, `conversation_id`, `user_id`, `posted_at`, `created_at`, `updated_at`) VALUES (?, ?, ?, ?, ?, ?)
|
|
sql
app/models/conversation_message.rb:52
|
5%
|
app/models/conversation_message.rb:52
- Average Self
-
3ms
- Average calls
- 1x
- Total Self
- 3ms
- Total Children
- 0ms
- Total runtime
- 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
|
|
code
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
|
5%
|
/var/www/oblyk/api/shared/bundle/ruby/2.6.0/gems/railties-6.0.3.6/lib/rails/engine.rb:525
- Average Self
-
3ms
- Average calls
- 1x
- Total Self
- 3ms
- Total Children
- 60ms
- Total runtime
- 63ms
Rails::Engine#call
|
|
sql
app/models/conversation_user.rb:18
|
4%
|
app/models/conversation_user.rb:18
- Average Self
-
2.7ms
- Average calls
- 1x
- Total Self
- 2.7ms
- Total Children
- 0ms
- Total runtime
- 2.7ms
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/models/conversation_message.rb:46
|
3%
|
app/models/conversation_message.rb:46
- Average Self
-
2ms
- Average calls
- 1x
- Total Self
- 2ms
- Total Children
- 0ms
- Total runtime
- 2ms
SELECT `conversation_users`.* FROM `conversation_users` WHERE `conversation_users`.`conversation_id` = ? AND `conversation_users`.`user_id` != ?
|
|
sql
app/models/notification.rb:100
|
3%
|
app/models/notification.rb:100
- Average Self
-
1.7ms
- Average calls
- 1x
- Total Self
- 1.7ms
- Total Children
- 0ms
- Total runtime
- 1.7ms
SELECT COUNT(*) FROM `notifications` WHERE `notifications`.`user_id` = ? AND `notifications`.`read_at` IS NULL
|
|
sql
app/models/conversation_message.rb:61
|
2%
|
app/models/conversation_message.rb:61
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
INSERT INTO `notifications` (`notification_type`, `user_id`, `notifiable_type`, `notifiable_id`, `posted_at`, `created_at`, `updated_at`) VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
sql
app/controllers/api/v1/api_controller.rb:26
|
2%
|
app/controllers/api/v1/api_controller.rb:26
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
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
|
2%
|
app/controllers/api/v1/api_controller.rb:64
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/conversation_messages_controller.rb:71
|
2%
|
app/controllers/api/v1/conversation_messages_controller.rb:71
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT COUNT(*) FROM `conversation_users` WHERE `conversation_users`.`conversation_id` = ? AND `conversation_users`.`user_id` = ?
|
|
sql
app/models/conversation.rb:21
|
2%
|
app/models/conversation.rb:21
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT MAX(`conversation_messages`.`posted_at`) FROM `conversation_messages` WHERE `conversation_messages`.`conversation_id` = ?
|
|
sql
app/models/conversation_message.rb:47
|
2%
|
app/models/conversation_message.rb:47
- Average Self
-
1.3ms
- Average calls
- 1x
- Total Self
- 1.3ms
- Total Children
- 0ms
- Total runtime
- 1.3ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/models/conversation_user.rb:19
|
2%
|
app/models/conversation_user.rb:19
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `conversation_messages`.* FROM `conversation_messages` WHERE `conversation_messages`.`id` = ? LIMIT ?
|
|
sql
app/controllers/api/v1/conversation_messages_controller.rb:79
|
2%
|
app/controllers/api/v1/conversation_messages_controller.rb:79
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `conversations`.* FROM `conversations` WHERE `conversations`.`id` = ? LIMIT ?
|
|
sql
app/models/conversation_message.rb:21
|
2%
|
app/models/conversation_message.rb:21
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `conversation_users`.* FROM `conversation_users` WHERE `conversation_users`.`conversation_id` = ? AND `conversation_users`.`user_id` = ? LIMIT ?
|
|
sql
app/models/conversation_user.rb:15
|
2%
|
app/models/conversation_user.rb:15
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
SELECT `users`.* FROM `users` WHERE `users`.`id` = ? LIMIT ?
|
|
sql
app/models/conversation_user.rb:8
|
2%
|
app/models/conversation_user.rb:8
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
UPDATE `conversation_users` SET `conversation_users`.`last_read_at` = ?, `conversation_users`.`updated_at` = ? WHERE `conversation_users`.`id` = ?
|
|
sql
app/models/conversation.rb:22
|
2%
|
app/models/conversation.rb:22
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
UPDATE `conversations` SET `conversations`.`last_message_at` = ?, `conversations`.`updated_at` = ? WHERE `conversations`.`id` = ?
|
|
sql
app/models/conversation_message.rb:53
|
1%
|
app/models/conversation_message.rb:53
- Average Self
-
2ms
- Average calls
- 0.33x
- Total Self
- 0.67ms
- Total Children
- 0ms
- Total runtime
- 0.67ms
SELECT `conversation_messages`.* FROM `conversation_messages` WHERE `conversation_messages`.`id` = ? LIMIT ?
|
|
redis
app/controllers/api/v1/conversation_messages_controller.rb:42
|
1%
|
app/controllers/api/v1/conversation_messages_controller.rb:42
- Average Self
-
0.67ms
- Average calls
- 1x
- Total Self
- 0.67ms
- Total Children
- 0ms
- Total runtime
- 0.67ms
publish
|
|
redis
app/models/notification.rb:96
|
1%
|
app/models/notification.rb:96
- Average Self
-
1ms
- Average calls
- 0.67x
- Total Self
- 0.67ms
- Total Children
- 0ms
- Total runtime
- 0.67ms
multi
|
|
redis
app/models/notification.rb:100
|
<1%
|
app/models/notification.rb:100
- Average Self
-
0.33ms
- Average calls
- 1x
- Total Self
- 0.33ms
- Total Children
- 0ms
- Total runtime
- 0.33ms
publish
|