[Digikam-devel] high load problems when tagging

Marcel Wiesweg marcel.wiesweg at gmx.de
Wed Sep 3 11:45:32 BST 2008


> The origin of this seems to be the following:
> At some point one gets on the konsole:
> "Noticed file change in directory /home/username/Pictures"
> (i.e. the directory containing the database!)
> this then triggers DIO::scan
> which then calls in dio.cpp in
> void Watch::slotDone(KIO::Job*)
>     Digikam::AlbumManager::instance()->refresh();
>     Digikam::AlbumLister::instance()->refresh();
> I.e. those which then lead to the invocation of
> kio_digikamalbums and kio_digikamdates.
>
> One possible solution: do not set a
>   d->dirWatch->addDir(d->libraryPath)
> in AlbumManager::startScan() .
> For me, this works fine! ;-)
> However, I don't know whether there are any side-effects...
> Gilles, Marcel, Andi, what do you think about this issue?
>
> All this is for 0.9.x;
> I haven't looked into 0.10 wrt to this issue.

You can look into 0.10, because there is simple filtering set up for just this 
case. (the modification dates of all files in the directory are compared to 
last time, the db file taken out, and the dirwatch signal is ignored if 
nothing else has changed)

Marcel



More information about the Digikam-devel mailing list