perf(message): optimize message loading and reduce SQL queries (#13720)
This commit is contained in:
parent
1f63028a83
commit
284707c3a8
2 changed files with 15 additions and 27 deletions
|
|
@ -70,7 +70,7 @@ class MessageListApi(Resource):
|
|||
|
||||
try:
|
||||
return MessageService.pagination_by_first_id(
|
||||
app_model, end_user, args["conversation_id"], args["first_id"], args["limit"]
|
||||
app_model, end_user, args["conversation_id"], args["first_id"], args["limit"], "desc"
|
||||
)
|
||||
except services.errors.conversation.ConversationNotExistsError:
|
||||
raise NotFound("Conversation Not Exists.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue