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:
David Battersby
2024-04-25 20:29:00 +08:00
committed by GitHub
parent 14fc029a30
commit c62d3610c6
19 changed files with 84 additions and 41 deletions

View File

@ -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",
)