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

Identical query when getting directory listing of a Folder #4815

Open
rullzer opened this issue May 11, 2017 · 2 comments
Open

Identical query when getting directory listing of a Folder #4815

rullzer opened this issue May 11, 2017 · 2 comments

Comments

@rullzer
Copy link
Member

rullzer commented May 11, 2017

When you get a folder from the Node API and then at some point on that folder run getDirectoryListing it will perform the same query.

This is caused at https://github.com/nextcloud/server/blob/master/lib/private/Files/Node/Folder.php#L96 because we pass in the path (and not the folder object) and so https://github.com/nextcloud/server/blob/master/lib/private/Files/View.php#L1404 will perform the exact same query.

Now the query is most likely fast. But it is still silly to do it twice (especially since in a lot of cases they will happen right after each other).

@icewind1991 please have a look once 12 is out 😉

@rullzer rullzer added this to the Nextcloud 13 milestone May 11, 2017
@rullzer rullzer removed this from the Nextcloud 14 milestone Jun 9, 2018
@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jul 10, 2018
@skjnldsv skjnldsv added the 1. to develop Accepted and waiting to be taken care of label Jun 12, 2019
@ghost ghost removed the stale Ticket or PR with no recent activity label Jun 12, 2019
@szaimen
Copy link
Contributor

szaimen commented May 21, 2021

I suppose this issue is still valid? If not, please close this issue!

@joshtrichards
Copy link
Member

I believe this was addressed, probably by #33602 and a bit by #31843, but this isn't an area of the code where I'm at all comfortable saying with certainty on my own. Can one of you confirm this is closed by those prior PRs/merges?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants