mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
PERF: Reduce overhead from chat message excerpt (#26712)
This change moves the chat message excerpt into a new database column (string) on the chat_messages table. As part of this change, we will now set the excerpt within the `Chat::CreateMessage` service, and update it within the `Chat::UpdateMessage` service.
This commit is contained in:
@ -6,6 +6,7 @@ RSpec.describe "Chat composer draft", type: :system do
|
||||
fab!(:message_1) do
|
||||
Fabricate(
|
||||
:chat_message,
|
||||
use_service: true,
|
||||
chat_channel: channel_1,
|
||||
message: "This is a message for draft and replies",
|
||||
)
|
||||
|
Reference in New Issue
Block a user