Opened 19 years ago
Last modified 19 years ago
#2988 closed enhancement
database index updates — at Initial Version
| Reported by: | xris | Owned by: | Isaac Richards |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21 |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
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);
Note:
See TracTickets
for help on using tickets.

just need to verify that the code is clean and I'm doing things correctly.