optimize calendar search query#39741
Conversation
|
Thanks for your pull request 👍 The failure looks related: |
|
Thanks @kesselb , it does seem related. It seems like the test inserts four calendar items, only two of which are public. And it should only return 2 items (the public ones) but with my change it is returning 4 of them. I'm not sure why. @ChristophWurst - do you have any ideas on why it woudl fail this test? |
|
I think I found the problem. I suspect the |
Well spotted,
Looks good now!
Can you sign off your commits? |
see nextcloud/calendar#4758 Signed-off-by: Jamie McClelland <jm@mayfirst.org>
Signed-off-by: Jamie McClelland <jm@mayfirst.org>
87bc180 to
4a98bb9
Compare
|
Thanks for the help and feedback. Let me know if there's is anything else I should do. |
|
Drone failure doesn't seem to be related (acceptance-app-files). |
|
Seems a good candidate to be backported 👍 |
|
/backport to stable27 |
|
/backport to stable26 |
|
/backport to stable25 |
|
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
|
The backport to stable27 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable27
git pull origin stable27
# Create the new backport branch
git checkout -b fix/foo-stable27
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
|
The backport to stable26 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable26
git pull origin stable26
# Create the new backport branch
git checkout -b fix/foo-stable26
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable26More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
|
The backport to stable25 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable25
git pull origin stable25
# Create the new backport branch
git checkout -b fix/foo-stable25
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable25More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
|
/backport to stable27 |
|
/backport to stable26 |
|
/backport to stable25 |
Summary
By moving the classification clause to the outer query it returns more quickly and efficiently, avoiding potential time out when viewing calendars with large numbers of items.
Checklist