-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
{ | ||
last_chat_id: lastChat.id, | ||
}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마지막 채팅을 저장하고 id 를 가져와서 채팅방 table 에도 저장한다.
There was a problem hiding this comment.
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', | ||
) |
There was a problem hiding this comment.
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, | ||
}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좀 더 속도가 빨라지겠네요!
이슈
체크리스트