[mythtv-commits] Ticket #2988: database index updates

MythTV mythtv at cvs.mythtv.org
Thu Jan 25 05:52:41 UTC 2007


#2988: database index updates
-------------------------+--------------------------------------------------
 Reporter:  xris         |       Owner:  ijr    
     Type:  enhancement  |      Status:  new    
 Priority:  minor        |   Milestone:  unknown
Component:  mythtv       |     Version:  0.20   
 Severity:  medium       |  
-------------------------+--------------------------------------------------
 Been watching the slow and no-touch-index query log and have some up with
 some additional indexes that should help out somewhat.  Unfortunately,
 none of the queries that pointed these out is called often enough to make
 a significant improvement, but it's always good to be more efficient.

 I still have the affected queries if you would like to see them.  Some are
 rather large, so I opted to leave them out of the ticket.

 {{{
 ALTER TABLE recorded     ADD INDEX (recgroup, endtime);
 ALTER TABLE recorded     ADD INDEX (deletepending, lastmodified);
 ALTER TABLE record       ADD INDEX (maxepisodes);
 ALTER TABLE storagegroup ADD INDEX (hostname);
 ALTER TABLE channel      ADD INDEX (sourceid);
 ALTER TABLE mythlog      ADD INDEX (module);
 ALTER TABLE record       ADD INDEX (type);
 ALTER TABLE record       ADD INDEX (search);
 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2988>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list