Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE/#576] 마지막 채팅 DB 에 함께 저장 #602

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

namewhat99
Copy link
Collaborator

이슈

체크리스트

  • 마지막 채팅을 채팅방 DB 에 함께 저장한다
  • 가져올 때도 join 으로 가져옴

@namewhat99 namewhat99 added review code-review BE BE 관련 chatting 채팅 labels Jan 9, 2024
@namewhat99 namewhat99 requested a review from koomin1227 January 9, 2024 13:56
@namewhat99 namewhat99 self-assigned this Jan 9, 2024
{
last_chat_id: lastChat.id,
},
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

마지막 채팅을 저장하고 id 를 가져와서 채팅방 table 에도 저장한다.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좀 더 속도가 빨라지겠네요!

'chat_info',
'chat_room.id = chat_info.chat_room',
'chat_room.lastChat = chat_info.id',
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

가져올때 서브쿼리 사용하지 않고 바로 chat 과 join 해서 가져옴

{
last_chat_id: lastChat.id,
},
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좀 더 속도가 빨라지겠네요!

@koomin1227 koomin1227 merged commit 3dbb785 into BE Jan 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE BE 관련 chatting 채팅 review code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants