[Owncloud] .exclude/.ignore for the sync client, and improve polling

Tim Hinkes timmeey at timmeey.de
Fri May 11 16:33:39 UTC 2012


Hey,

i just started using the sync client. And it's working "well". It does 
what it should do. But... I sync my whole Documents folder. And there 
are >5000 files. So every polling takes much time, and produces heavy 
server/client load.

I would suggest two parts of improvement.

1. We need some other polling. Comparing every "hash" value in the 
server database and the client sql table is not a good Idea. First Idea: 
hash the hashes, and then just compare these two values. This would 
reduce the server load(coz its only one sql command) and would speed up 
everything, and only if the two hashes differ, do a full polling. (or 
half polling like devide an conquer) until u got the changed file.
Second idea, Give the server a changed-flag(for every snyc client that 
has "registred"). If something got changed on the server side just flip 
this flag, and the client only do a full poll when the flag got changed. 
Mybe we can combine these two ideas to just one


2. Many of my >5000 files are useless .svn/.git files that dont need to 
be synced. If we can teach the sync client to use some kind of .ignore 
list, it would reduce the files need to be synced.
Maybe each OC user can set the ignore files online in there OC account, 
and the sync client fetch thes list, so there would be no need to give 
every instance of the client these list.


I can give more details about my ideas, when u like them :-)


TimmeeY



More information about the Owncloud mailing list