Skip to content

perf: Use getFirstNodeById and pass userId for our internal helper to avoid fetching mountpoints - #5933

Merged
juliusknorr merged 1 commit into
mainfrom
perf/node-by-id
Jun 21, 2024
Merged

perf: Use getFirstNodeById and pass userId for our internal helper to avoid fetching mountpoints#5933
juliusknorr merged 1 commit into
mainfrom
perf/node-by-id

Conversation

@juliusknorr

@juliusknorrjuliusknorr commented Jun 20, 2024

Copy link
Copy Markdown
Member

If we don't care which node we get by id we can use the optimized/cached getFirstNodeById instead. In addition I noticed we can skip getting mounts for a given file id to determine the user if we pass it upfront to our internal helper to get the file with the highest permission.

… avoid fetching mountpoints
Signed-off-by: Julius Härtl <jus@bitgrid.net>

@max-nextcloudmax-nextcloud left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

Sign up for freeto 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.

2 participants

@juliusknorr@max-nextcloud