Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
juliusknorr merged 1 commit intomainfrom
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 intomainfrom
perf/node-by-id

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jun 20, 2024

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 <[email protected]>
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

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

2 participants