Skip to content

Syncing/refreshing is extremly slow #2531

Open
@lu4p

Description

@lu4p

This issue respects the following points:

Describe the bug

Refreshing/Syncing the Notes app takes way too long (~10 seconds), even if nothing has changed.

I think this means all remote notes are downloaded on every request, at least thats what I got from quickly glancing over the relevant code.

As per the Nextcloud Notes Api docs:
https://github.com/nextcloud/notes/blob/main/docs/api/v1.md#get-all-notes-get-notes

PruneBefore should be used to only download notes that have been remotely changed since the last update:

 pruneBefore 	integer, optional 	All notes without change before of this Unix timestamp are purged from the response, i.e. only the attribute id is included. You should use the Unix timestamp value from the last request's HTTP response header Last-Modified in order to reduce transferred data size.

(or alternatively the ETAG contained in the response)

This is still an issue even if I'm wrong about the cause, it shouldn't take more than a second (accounting for network latency).

Expected behavior

No response

Notes Android version

3.5

Notes server version

4.11

Nextcloud Android version

3.30.6

Nextcloud version

30.0.4

Device

Samsung Galaxy Z Flip 5

Android Version

14

App Store

  • Google Play Store
  • F-Droid
  • Huawei App Gallery

Stacktrace

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions