Identical query when getting directory listing of a Folder #4815
Labels
1. to develop
Accepted and waiting to be taken care of
enhancement
feature: filesystem
performance 🚀
technical debt
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 😉
The text was updated successfully, but these errors were encountered: