[mythtv-commits] Ticket #2988: database index updates
MythTV
mythtv at cvs.mythtv.org
Sun Jan 28 21:49:08 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 | Resolution:
-------------------------+--------------------------------------------------
Old description:
> 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);
> }}}
New description:
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.
see attached diff.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2988#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list