Skip to content

Ускорение загрузки чатов#115

Open
trszdev wants to merge 1 commit into
urfu-2017:devfrom
trszdev:faster-load-chats
Open

Ускорение загрузки чатов#115
trszdev wants to merge 1 commit into
urfu-2017:devfrom
trszdev:faster-load-chats

Conversation

@trszdev
Copy link
Copy Markdown
Collaborator

@trszdev trszdev commented May 5, 2018

Вначале делаем emit(chat), join(chatId) и только потом пишем в базу

@trszdev trszdev force-pushed the faster-load-chats branch from 875bf24 to cc9c779 Compare May 5, 2018 00:44
Copy link
Copy Markdown
Collaborator

@Edheltur Edheltur left a comment

Choose a reason for hiding this comment

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

К предположим ты присоеденился сокетом и уже успел написать сообщение. А бд еще тупит. Что произойдет? Он не сможет достать нужное сообщение из бд и грохнется? Так ли нужна предложенная оптимизация?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants