nextcloud / text

📑 Collaborative document editing using Markdown
GNU Affero General Public License v3.0
545 stars 87 forks source link

Reduce polling time on read only public shares #4029

Open juliushaertl opened 1 year ago

juliushaertl commented 1 year ago

Polling intervals that trigger the sync requests are quite frequent. We should reduce the polling internal in cases where immediate updates may not be that relevant:

Relevant code parts: https://github.com/nextcloud/text/blob/ea17f697135e1e274673b4c2523004a8d7e3def2/src/services/PollingBackend.js#L31-L53

On the way doing this the logic could also be refactored a bit to be easier to understand

Assigning performance tag and enhancement since this would help reduce the server load.

luka-nextcloud commented 1 year ago

@juliushaertl Please add some description.