After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316048 - Attaching Tag to Many Images Hangs UI
Attaching Tag to Many Images Hangs UI
Status: RESOLVED OBSOLETE
Product: f-spot
Classification: Other
Component: Tags
CVS
Other Linux
: Low enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 321883 346394 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-09-12 04:44 UTC by Gabriel Burt
Modified: 2007-11-22 04:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to speed tagging way up (4.47 KB, patch)
2005-11-21 22:18 UTC, Gabriel Burt
committed Details | Review
Patch that shows progress dialog when mainpulating tags of more than 5 photos (3.40 KB, patch)
2006-09-05 19:55 UTC, Yves Kurz
none Details | Review

Description Gabriel Burt 2005-09-12 04:44:44 UTC
If you select many pictures and attach them to a tag, F-Spot freezes up for
quite a while until all the photos are tagged.  A new dialog box with a progress
bar would be good if tagging more than N pictures.

A friend who did some simple usage testing for me today ended up clicking on the
Tag Icon in the context menu that she wanted to attach to the pictures several
times during the course of the probably 15 seconds the UI was hung.
Comment 1 Gabriel Burt 2005-11-21 22:16:19 UTC
*** Bug 321883 has been marked as a duplicate of this bug. ***
Comment 2 Gabriel Burt 2005-11-21 22:18:58 UTC
Created attachment 55056 [details] [review]
Patch to speed tagging way up

This patch adds methods to the Db class that allow transactions to easily be
started, commited, or rolled back.  I then wrap the loops that tag or untag all
selected photos within a transaction, which speeds up the tagging/untagging
process by about a factor of 40 on my machine.	Other database-heavy actions
(like importing) should be wrapped in transactions too.
Comment 3 Gabriel Burt 2005-12-19 04:49:35 UTC
The database bottleneck part of the problem is fixed in CVS, but now, if the user has the option of saving the metadata to their files set, it still takes a very long time to attach a tag (but not unattach a tag for some reason...).

So, it seems that either a progress bar should be displayed, or probably better, saving the tags to file should happen in the background.
Comment 4 Larry Ewing 2006-01-10 02:06:21 UTC
unattach wasn't taking a long time because it wasn't removing the tag.  The removed problem is fixed now so everything will be slow if the save metadata option is selected.  The save operation now takes place at a central point though so it shold be possible to queue these to a thread and simply show progress.
Comment 5 Yves Kurz 2006-09-05 19:55:17 UTC
Created attachment 72268 [details] [review]
Patch that shows progress dialog when mainpulating tags of more than 5 photos

Patch that takes care that the UI stays responsive when adding/removing tags form a group of photos. The patchs displays an progress dialog if more than five photos are altered and meta data is saved to the photos.

Please as this is my first patch tell me what could I do better for the next version.
Comment 6 Yves Kurz 2006-09-06 05:10:20 UTC
There is another solution to this bug. The JobScheduler introduced by bug 
#337724 solves the problem in a more elegant but far more complex way, IMO.
Comment 7 Gabriel Burt 2006-10-19 00:12:50 UTC
*** Bug 346394 has been marked as a duplicate of this bug. ***
Comment 8 Maxxer 2007-10-23 11:04:56 UTC
Hasn't this become obsolete, since the introduction of JobScheduler?

BTW I agree about the progress bar, as even the db inserts may take long (up to one minute) on my (DAMN) pc.
Comment 9 Bengt Thuree 2007-11-21 22:07:03 UTC
I agree, lets close this bug.
If there is a need for a progress/status on the JobScheduler then lets create a new one for that problem.
Comment 10 Maxxer 2007-11-21 23:34:12 UTC
The inserts into jobscheduler still hangs the ui. I believe the progress bar would be a lot helpful in user perspective.
Comment 11 Bengt Thuree 2007-11-22 04:15:31 UTC
Ok, a progress bar indicating how much longer until the JobScheduler has received all the work orders :)

I think we also need a status bar for how many remaining jobs JobScheduler have.
This should be another bug though.