[Kde-pim] korganizer doesn't save resources immediately when changed or deleted (bug 143511)

Reinhold Kainhofer reinhold at kainhofer.com
Thu Mar 29 03:14:48 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag, 29. März 2007 schrieb Jason 'vanRijn' Kasper:
> I agree.  Reinhold/<whomever else should have a vote>, do I have your
> blessing to start working on making sure korganizer/libkcal saves Updates
> and Deletes to disk immediately just as it does Creates?  

As the local file resource is derived from ResourceCached, all you need to do 
is to call 
void ResourceCached::setSaveInterval( int minutes )
with minutes==0 in the constructor of the local file resource. Then please 
test if there are any performance bottlenecks (I'm not using a file resource, 
so I won't realize if the majority of korganizer users will have problems).

> I'll of course 
> ask for permission to commit before I do, but do I have your agreement that
> this is the Right Thing To Do (TM)?  =:)

the current (default) interval of 10 minutes is really too long, you are 
right. I would think that at most half a minute (or something like 10 
seconds) should be used (yes, the current API doesn't support that) to make 
sure that not every part of a larger change triggers its own saving.

Cheers,
Reinhold


- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGCyEaTqjEwhXvPN0RAhmIAKCTEK1srfxfgDjtka/GvzITkJPEigCfUJWA
Ju0FA3blRWFfTOUr52yKpE8=
=kLxc
-----END PGP SIGNATURE-----
_______________________________________________
kde-pim mailing list
kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/


More information about the kde-pim mailing list