[mythtv-commits] Ticket #10047: Optimize Mythweb Program Listing

MythTV noreply at mythtv.org
Sat Oct 22 00:36:28 UTC 2011


#10047: Optimize Mythweb Program Listing
-------------------------------+----------------------------
 Reporter:  fracmak@…          |          Owner:  kormoc
     Type:  Developer Task     |         Status:  new
 Priority:  minor              |      Milestone:  unknown
Component:  Plugin - MythWeb   |        Version:  Trunk Head
 Severity:  medium             |     Resolution:
 Keywords:                     |  Ticket locked:  0
-------------------------------+----------------------------

Comment (by Jay Merrifield <fracmak@…>):

 Sorry for the delayed response, the e-mail got lost in my mythtv
 filtering, the index I need is as follows:

 create index "program_series_recstatus" on oldrecorded
 ("programid","seriesid","recstatus")

 I know it looks very similar to the "recstatus" index
 ("recstatus","programid","seriesid") but it's a more efficient query by
 far because recstatus has low cardinality, and is almost as slow as doing
 a table search. By putting programid as being first, the query time is cut
 in half with the query I've created.

 I'd love to get some feedback on the other optimizations I've made, I've
 been digging through the mythtv code to see how the scheduled/conflict
 decision making is done, and I found the same slow query there, so there's
 a chance some of this code can be reused there, but I'd rather focus on
 finding the best algorithm in the web interface before attempting
 something in the core code.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10047#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list