[mythtv-commits] Ticket #11011: getAspect() SQL query is slow

MythTV noreply at mythtv.org
Fri Oct 7 17:09:26 UTC 2016


#11011: getAspect() SQL query is slow
----------------------------------+-----------------------------
 Reporter:  nordmark@…            |          Owner:  kormoc
     Type:  Bug Report - General  |         Status:  closed
 Priority:  minor                 |      Milestone:  unknown
Component:  Plugin - MythWeb      |        Version:  Master Head
 Severity:  medium                |     Resolution:  Won't Fix
 Keywords:                        |  Ticket locked:  0
----------------------------------+-----------------------------

Comment (by thomas@…):

 This is a pretty basic hack, but I just forced the aspect ratio to be 16/9
 in:
 /usr/share/mythtv/mythweb/modules/tv/classes/Program.php

 by adding this:
 return 16/9;

 right after this:
 public function getAspect() {
 and before this:
 global $db;

 The reason is that, recently, I'd get an occasional recording from a
 HDTC2-us that would create a landmine for the Recorded Programs entry in
 mythweb.  Accessing that page would drive mysql to 100% CPU.  The
 resulting system performance would cause recordings to fail, the system to
 be unresponsive, etc.  I once let it run for 4 days, wondering if the job
 would end -- it did not; only a reboot would clear up the condition.

 If anyone has an idea for a less drastic measure, I'm all ears.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/11011#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list