Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] insert와 update 속도가 달라 생기는 문제 #107

Open
komplamoose opened this issue Dec 15, 2022 · 0 comments
Open

[Bug] insert와 update 속도가 달라 생기는 문제 #107

komplamoose opened this issue Dec 15, 2022 · 0 comments
Assignees
Labels

Comments

@komplamoose
Copy link
Member

설명


재현 조건

' 부캠 ' 을 엄청 빠르게 입력한다.

발생하는 이유

붘 => 부캐 가 되는 과정에서 "캐"의 insert 작업이 진행되는데,
이때 부캐 => 부캠이 되는 과정에서 "캠"이 "캐"를 replace하는 속도가, CRDT에 "캐"가 추가되는 속도보다 더 빨라서 "캠"이 업데이트 할 "캐"를 찾지 못하는 현상 발생


해본 방법

  1. 서버에서 저장하고 보내지 않고 일단 바로 보낸다
  • 서버에 저장된 글이 망가짐
  1. 저장하고 보낸다
  • 클라이언트에서 받는 글이 망가짐

해볼 수 있는 방법

  1. 서버에서 바로 저장하지 않고 요청을 순서대로 쌓아두기만 하고 필요할 때 합친다
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant