You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, we discussed that one flag is enough for shared with and by which I still think is not sufficient, but that was the decision back than. Argument: In the web interface you also do have the same icons for both cases. Now with overlays, we only have icons for the shared with me which differes from the WI.
regarding the 'S' - maybe I remember the discussion wrong - but querying for the 'shared by me' information is expensive - we don't want to do this on every dav request
@schiesbn I need your expertise on the "shared by me" information. As explained above I'm a bit worried about the performance impact if we call some sharing function on each and every folder we return via webdav.
We might want to add some sql join trick to get the shared information into the FileInfo class? Just an idea .....
shares with and shared by are both one \OC\Share::getItem() call. I don't know how it is implemented for the webdav call but both calls should have the same performance impact.
Generally: We could also think about separate this two operations. All the share information could also be fetched with OCS api call, that's also the way the mobile clients handle it. This way the client can decide when to update which information and we would no longer need to fetch all the information for every webdav call.
just as a sidenote, we saw today that stuff that is shared via link do not have the "S" in the permissions tag as well, which seems also buggy. @lmaestro will do a bug report about that. But maybe its related to this.
Whether or not a file is shared with me can be determined quickly by looking at the storage, shared by me requires additional db queries
Yes, but it is only there because we did the getItems() call before to set up the mount points. So the general statements stays true. For both information wen need exactly one getItems() call for each request. getItems() does exactly one DB query, at the moment I don't see how this could be optimized.
Yes, but it is only there because we did the getItems() call before to set up the mount points. So the general statements stays true. For both information wen need exactly one getItems() call for each request. getItems() does exactly one DB query, at the moment I don't see how this could be optimized.
well - the call of getItems() to setup the mount points is done anyways - if i want to get the 'shared-by-me' information it would be an additional call and it would be an additional call for EACH file and folder - right?
As stated above: from my understanding we should be in the position to join up t tables and get al information with the query on the file cache level.
Is this still an issue ? I've seen Webdav permission attributes set before, also the mobile and desktop clients are using them. Does it mean this is fixed or are there any outstanding issues ?
Activity
DeepDiver1975 commentedon Aug 7, 2014
We have never though about shared by me.
I'll have a look regarding the 'M'
dragotin commentedon Aug 7, 2014
Oh, we discussed that one flag is enough for shared with and by which I still think is not sufficient, but that was the decision back than. Argument: In the web interface you also do have the same icons for both cases. Now with overlays, we only have icons for the shared with me which differes from the WI.
DeepDiver1975 commentedon Aug 7, 2014
The 'M' can be fixed pretty quick - pr is coming ....
DeepDiver1975 commentedon Aug 7, 2014
regarding the 'S' - maybe I remember the discussion wrong - but querying for the 'shared by me' information is expensive - we don't want to do this on every dav request
dragotin commentedon Aug 7, 2014
Ah ok, that might be the crucial detail. Hmm.
DeepDiver1975 commentedon Aug 11, 2014
@schiesbn I need your expertise on the "shared by me" information. As explained above I'm a bit worried about the performance impact if we call some sharing function on each and every folder we return via webdav.
We might want to add some sql join trick to get the shared information into the FileInfo class? Just an idea .....
@icewind1991 for filesystem/cache and stuff 😉
schiessle commentedon Aug 11, 2014
shares with and shared by are both one \OC\Share::getItem() call. I don't know how it is implemented for the webdav call but both calls should have the same performance impact.
Generally: We could also think about separate this two operations. All the share information could also be fetched with OCS api call, that's also the way the mobile clients handle it. This way the client can decide when to update which information and we would no longer need to fetch all the information for every webdav call.
dragotin commentedon Aug 11, 2014
just as a sidenote, we saw today that stuff that is shared via link do not have the "S" in the permissions tag as well, which seems also buggy. @lmaestro will do a bug report about that. But maybe its related to this.
icewind1991 commentedon Aug 11, 2014
Whether or not a file is shared with me can be determined quickly by looking at the storage, shared by me requires additional db queries
schiessle commentedon Aug 11, 2014
Yes, but it is only there because we did the getItems() call before to set up the mount points. So the general statements stays true. For both information wen need exactly one getItems() call for each request. getItems() does exactly one DB query, at the moment I don't see how this could be optimized.
DeepDiver1975 commentedon Aug 11, 2014
well - the call of getItems() to setup the mount points is done anyways - if i want to get the 'shared-by-me' information it would be an additional call and it would be an additional call for EACH file and folder - right?
As stated above: from my understanding we should be in the position to join up t tables and get al information with the query on the file cache level.
DeepDiver1975 commentedon Aug 11, 2014
share by link is a kind of 'shared-by-me' as well
11 remaining items
PVince81 commentedon Mar 26, 2015
What's the next step ?
PVince81 commentedon Aug 3, 2015
Is this still an issue ? I've seen Webdav permission attributes set before, also the mobile and desktop clients are using them. Does it mean this is fixed or are there any outstanding issues ?
guruz commentedon Aug 3, 2015
@PVince81 I think it's about shared TO me vs shared BY me..
DeepDiver1975 commentedon Mar 10, 2016
@dragotin @guruz is this still of an issue? Please reopen if so - THX
lock commentedon Aug 5, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.