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

perf: Reduce polling interval for read only users #5930

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Jun 20, 2024

Reduce the polling interval for sync requests on read only sessions to 30s.

This is a quick fix, a proper way of doing that would be to actually add the read only state to the session data for each session joined. That way we could dynamically adjust the sync interval depending on if there are other users with editing permission in the document or not.

Especially useful if you have documents that have high viewing traffic as our app tutorials

Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Code changes look sensible, I didn't test though.

How about creating an issue with some description how a proper implementation would look like and adding it to our board so we can tackle this soon and it doesn't get lost?

@juliushaertl
Copy link
Member Author

Definitely, will file an issue

@juliushaertl
Copy link
Member Author

#5931

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl merged commit 3381c80 into main Jun 21, 2024
58 of 61 checks passed
@juliushaertl juliushaertl deleted the perf/read-only-sync branch June 21, 2024 12:29
@juliushaertl
Copy link
Member Author

/backport to stable29

@juliushaertl
Copy link
Member Author

/backport to stable28

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

Successfully merging this pull request may close these issues.

None yet

2 participants