[Owncloud] Client Work Methodology - Server Participation?

Emre Erenoglu erenoglu at gmail.com
Sat Jul 7 11:45:48 UTC 2012


On Fri, Jul 6, 2012 at 1:50 PM, Klaas Freitag <freitag at owncloud.com> wrote:

> On 05.07.2012 17:23, Emre Erenoglu wrote:
>
>> Hi,
>>
>> I would like to understand how the client works for the sync job. What I'm
>> especially interested is to understand if the server side participates in
>> the "change detection" process, or if it's just the client who access the
>> server, check status of each file and then compare with what it has
>> locally.
>>
>
> Currently the client does a check for differences on a regular basis. For
> that it accesses the server once for every directory to get the list of
> files in there. So that is not accessing every file, yet it has
> disadvantages for file trees with lots of directories with little files in.
>
> I plan the following optimizations basically:
> - Get the list of files only once for the whole tree, which results in
> only one server call.
> - Introduce a server notification to the client if something changes so
> that regular checks can go away.
>
> I think these two changes basically solve the performance problems, if
> there are any.


Thanks Klaas and other's who are brainstorming and discussing on this mail
thread. Klaas, these optimizations are nice since I plan to use Owncloud
for collaboratively developing  projects but the team members are spread
over the world, and we have many levels of directory structures with many
files in it.

I would like to learn something. If there's a file which is for example 100
mbyte and one of the clients change it, does the client upload or download
the full file to/from the server upon a change, or only the changed
portion? This is an issue since in my case the server won't be on a LAN
connection but rather a 2 mbps wan link.

If they indeed download/upload only the changed portion, then how will the
server & client decide on the changed portion? If the logic is only on
client side, then doesn't the client need to read the whole file in server
to understand the changed portion? This will be the same as
uploading/downloading the whole file.  Doesn't server and client need to do
the reading on their ends and decide which portion  of the file to update?
(In our example, the file is 100 meg, but it could be 1 gigabyte and you'll
understand what I mean).

Or is the owncloud sync function today only meant for fast LAN connection
speeds for large files? Is my assumption correct?

Many Thanks,
-- 
Emre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20120707/0158435a/attachment.html>


More information about the Owncloud mailing list