-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Reduce number of database queries during WebDAV propfind request #34471
Conversation
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
I have looked at the failing tests. Apparently the performance-8.0 test is not prepared for PRs from cloned repositories.
Regarding acceptance tests - the errors are suspiciously close to my changes (both relate to the sharing feature). Unfortunately I have not been able to correlate the reported errors with potential errors in the backend. Are logs from the backend available somewhere for the failed run? |
@starypatyk the acceptance test issues are not related to your code changes. These are tests that randomly fail on CI (but not locally) which we were not able to fix yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 see minor comment
/backport to stable25 |
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
I've restarted the CI jobs that timed out. Then this should be good to merge |
I am not sure about next steps. The tests are successful - except performance tests (irony 😉) that seem not to be prepared when PR comes from a fork. Should I merge it myself? I am not even sure that I have required permissions... I have no problem with the delay, but I would not like to block things. |
@starypatyk thanks a lot for your contribution! we'll take it from there, it will get backported to stable25 and after 25.0.0 is out we can merge the backport for 25.0.1 |
While working on nextcloud/android#10783 I have found the following.
With help of @PVince81 I have been able to refactor the code to avoid issuing additional database queries, since required data is already loaded into memory.
Performance is improved significantly - almost four times faster in my tests (331 files in a folder)
Proposed changes introduce a slight change in behaviour when a file has been shared more than once with the same user - e.g. with a direct share and a group share.
With the new implementation the notes are presented like this in the Android client:
I have not been able to find the share notes in the UI of the web client.