Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172440 - media-tv/mythtv should run optimize_mythdb.pl via cron
Summary: media-tv/mythtv should run optimize_mythdb.pl via cron
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-27 18:03 UTC by Robert Lippmann
Modified: 2007-06-28 18:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Lippmann 2007-03-27 18:03:20 UTC
After running a myth setup for a while, things tend to slow down due to cruft in the mysql database.  Running this script helps a lot.  A quick and dirty cron job run daily/weekly/monthly might be useful.

A simple:
perl /usr/share/mythtv/contrib/optimize_mythdb.pl in a crontab file should do the trick.

Reproducible: Always

Steps to Reproduce:
n/a

Actual Results:  
n/a

Expected Results:  
n/a
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2007-03-27 21:08:23 UTC
I had previously added this to mythfilldatabase. I guess they removed it. Either way, don't you think this should be an exercise left for the user?
Comment 2 Robert Lippmann 2007-03-29 06:04:46 UTC
Was this a patch to the source?  mythfilldatabase is a binary (not sure what it used to be).  If it was patched source, I guess this isn't necessary...

Comment 3 Peter Budny 2007-05-16 19:05:40 UTC
It's nice, but I don't think it's necessary. Periodic system maintenance is the job of the user, not the ebuild, right?

Anyway, if users want to maintain/optimize their database, there's a mysqlcheck command that does it without all the perl hacking. I have a cron job to run mysqlcheck --optimize --all-databases on a regular basis.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2007-06-28 18:22:42 UTC
I agree with #c3