[Owncloud] Client Work Methodology - Server Participation?

Klaas Freitag freitag at owncloud.com
Fri Jul 6 09:50:59 UTC 2012


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.

Klaas



More information about the Owncloud mailing list