Shutdown is slow with many selections

Bug #239064 reported by Andy Balaam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FreeGuide-TV
Fix Released
High
Unassigned

Bug Description

If you make lots of selections of programmes FreeGuide shuts down very slowly.

We should purge out-of-date selections on exit so they don't slow us down in the future.

Changed in freeguide-tv:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Arisian (mmclagan) wrote :

This also affects startup -- if there are a lot of selections, the startup on Linux can be painfully slow. I have two Schedules Direct lineups with an average of 110,000 programs in the 24 day window (10 before, 14 after) and it takes 3+ minutes to start up. I ended up writing a perl/bash script which cleans out the database before the program starts and it helps a lot but try leaving the program running for a couple of weeks without shutting it down and most operations become painfully slow.

[mmclagan@titan ~]$ cd .java/.userPrefs/org/freeguide-tv/modules/reminder-alarm/
[mmclagan@titan reminder-alarm]$ dir
total 720
-rw-rw-r-- 1 mmclagan mmclagan 730084 Jun 24 00:24 prefs.xml

  <entry key="favouritesList.size" value="810"/>
  <entry key="manualSelectionList.size" value="1894"/>

The attached script, called 'prefsage' is run each time I start up Freeguide so that it drops every possible selection older than the 10 day limit of the SER files. It could be run after Freeguide exits but that could leave extra selections on the next startup.

Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

I suggest we should purge old selections whenever we parse any XML - either on download listings, Import, or at startup if some XML is found in the working dir.

This shouldn't be a hugely difficult thing to write - I'd gladly help anyone who wanted to try it.

Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

Making this High importance since it can make things really bad for some users.

Changed in freeguide-tv:
importance: Medium → High
Revision history for this message
Andy Balaam (mail-artificialworlds) wrote :

We now delete all selections older than 4 weeks when we exit FreeGuide.

Changed in freeguide-tv:
milestone: none → 0.10.12
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.