[mythtv-commits] Ticket #10482: Marking episode first/last showings performance
MythTV
noreply at mythtv.org
Tue Mar 20 20:46:01 UTC 2012
#10482: Marking episode first/last showings performance
-------------------------------------------+---------------------
Reporter: sfkoch@… | Owner: stuartm
Type: Patch - Feature | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythfilldatabase | Version: 0.24.2
Severity: medium | Keywords:
Ticket locked: 0 |
-------------------------------------------+---------------------
Mythfilldatabase's "Marking episode first showings" and "Marking episode
last showings" steps take a combined 21+ minutes on my backend server.
After attempting MySQL and filesystem tuning with no success, I cut the
updates down to 5 seconds by modifying mythfilldatabase's queries to
update in bulk rather than row-by-row.
Excerpts from mythfilldatabase output:
{{{
2012-03-20 13:02:56.902 Marking episode first showings.
2012-03-20 13:13:45.289 Found 34235
2012-03-20 13:13:45.289 Marking episode last showings.
2012-03-20 13:24:32.696 Found 34235
2012-03-20 14:21:44.732 Marking episode first showings.
2012-03-20 14:21:47.397 Found 65336
2012-03-20 14:21:47.397 Marking episode last showings.
2012-03-20 14:21:50.457 Found 64918
}}}
Besides the performance improvement, the "Found" number is changed to the
actual number of programs marked instead of the number of unique programs.
The number marked is higher than the unique count because of duplicate
channels (non-HD and HD variants, Comcast in the middle of a massive
renumbering).
I will submit a git pull request shortly.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10482>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list