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

Do less DB requests when fetching parent path #510

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

CarlSchwan
Copy link
Member

Only fetch the parent path from the db if the parent is the storage
root. Unfortunately $this->root is not exposed in the Node api so we
can't save this call too.

In my tests previously the api call in the file app did 24 DB requests
and now only 17

Only fetch the parent path from the db if the parent is the storage
root. Unfortunately $this->root is not exposed in the Node api so we
can't save this call too.

In my tests previously the api call in the file app did 24 DB requests
and now only 17

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@skjnldsv skjnldsv merged commit ecfb641 into master Apr 5, 2022
@skjnldsv skjnldsv deleted the performance/less-db-request-parent-path branch April 5, 2022 19:38
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