-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add getShareTypesInFolder to optimize folder listening #339
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
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 string $userId | ||
| * @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[] |
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 <icewind@owncloud.com>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
19c244e to
ce7eb02
Compare
* Merge share types correctly * Filter share types * Order share types Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
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 <bjoern@schiessle.org>
For convenience, we should have done this in UpperCase initially. I will fix it in `nc_py_api` so that it is always converted before comparison, but this should also be unified on the AppAPI side Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
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