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

Build parent path without queries #445

Merged
merged 3 commits into from
Jan 5, 2023
Merged

Build parent path without queries #445

merged 3 commits into from
Jan 5, 2023

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Dec 13, 2022

In GitLab by @juliushaertl on Aug 18, 2022, 13:28

  • Build parent node name from path without getting the parent node
  • Pass parent node where available to avoid extra db queries
  • Cache root storage id per request to avoid duplicate queries

Cuts down the queries in half on our perftesting instance for the handbook example collective: 948 -> 541

Related upstream fix in server, but is not fully applicable here due to the recursive directory iteration nextcloud/server#33602

Fixes #377

@cypress
Copy link

cypress bot commented Dec 21, 2022



Test summary

58 0 0 0Flakiness 0


Run details

Project Collectives
Status Passed
Commit 7ae853d
Started Jan 5, 2023 2:16 PM
Ended Jan 5, 2023 2:20 PM
Duration 04:01 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
Copy link
Member

@mejo- Tests pass now and this would be ready for review. I just can't request your review due to the migration from gitlab ;)

@juliusknorr juliusknorr changed the title Draft: Build parent path without queries Build parent path without queries Jan 5, 2023
Copy link
Member Author

@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.

Thanks a lot @juliushaertl for looking into it again ❤️

@mejo- mejo- merged commit c5d79b1 into main Jan 5, 2023
@delete-merged-branch delete-merged-branch bot deleted the enh/performance branch January 5, 2023 14:24
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.

Performance issues
2 participants