-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add getShareTypesInFolder to optimize folder listening #339
Conversation
@icewind1991, thanks for your PR! By analyzing the annotation information on this pull request, we identified @PVince81, @rullzer, @schiessle and @DeepDiver1975 to be potential reviewers |
64% (2.6 seconds) faster than before? Nice! 🚀 |
* @param Node|null $node | ||
* @param bool $reshares Also get the shares where $user is the owner instead of just the shares where $user is the initiator | ||
* @return \OCP\Share\IShare[] | ||
* @since 9.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? This will be 9.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
1d0bf4f
to
fb7d7ab
Compare
@icewind1991 What is the status of this? |
Needs more work to implement this for the various sharing backends |
8b8f3f8
to
19c244e
Compare
Signed-off-by: Robin Appelman <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
19c244e
to
ce7eb02
Compare
* Merge share types correctly * Filter share types * Order share types Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
Ok I think this is ready for review. |
👍 for @rullzer's changes Listing a ~1000 file folder goes from ~3000 queries to 48 😄 Tested by sharing some files and checking if they show up as shared in the file list |
LGTM |
Signed-off-by: Bjoern Schiessle <[email protected]>
When getting share info for a folder, instead of looping over the childs and querying each one individually, use a single query to get the share status of all childs.
Gives a very significant improvement when loading large folders in the webui (not sure if the sync client is affected, depends on the properties requested)
TODO
cc @rullzer