[mythtv-commits] Re: Ticket #333: mythfilldatabase retrieves data for every day for the second datadirect source

MythTV mythtv at cvs.mythtv.org
Tue Nov 22 10:40:29 EST 2005


#333: mythfilldatabase retrieves data for every day for the second datadirect
source
-----------------------------------+----------------------------------------
 Reporter:  bolek-mythtv at curl.com  |        Owner:  cpinkham
     Type:  defect                 |       Status:  new     
 Priority:  minor                  |    Milestone:          
Component:  mythtv                 |      Version:  0.18.1  
 Severity:  medium                 |   Resolution:          
-----------------------------------+----------------------------------------
Changes (by cpinkham):

  * owner:  greg => cpinkham

Comment:

 That's the cause right there.  You have 19 channels for sourceid 2, the
 low-limit threshold would be 19 * 4 = 76 and you only have 41-45 programs
 for those 19 channels.  Can you do the following queries and they may help
 me work around this issue.

 select c.chanid, c.visible, count(p.starttime) from channel c left join
 program p on c.chanid = p.chanid AND starttime >= DATE_ADD(CURRENT_DATE(),
 INTERVAL '3 18' DAY_HOUR) AND starttime < DATE_ADD(CURRENT_DATE(),
 INTERVAL 4 DAY) where c.sourceid = 2 group by c.chanid, c.visible;

 select c.chanid, c.visible, count(p.starttime) from channel c left join
 program p on c.chanid = p.chanid AND starttime >= DATE_ADD(CURRENT_DATE(),
 INTERVAL '3 12' DAY_HOUR) AND starttime < DATE_ADD(CURRENT_DATE(),
 INTERVAL 4 DAY) where c.sourceid = 2 group by c.chanid, c.visible;

 select c.chanid, c.visible, count(p.starttime) from channel c left join
 program p on c.chanid = p.chanid AND starttime >= DATE_ADD(CURRENT_DATE(),
 INTERVAL 3 DAY) AND starttime < DATE_ADD(CURRENT_DATE(), INTERVAL 4 DAY)
 where c.sourceid = 2 group by c.chanid, c.visible;

 I think that we could put a little more logic in determining whether a
 channel had enough data, by looking at the day previous.  For instance if
 the previous day only had 10 programs on a channel, there's no reason to
 expect the day we're looking at to have 5 in the last 6 hours of the day.
 I have 6 HD channels with no data in them for whole days, and you said you
 do also, so exlucind those from the average will help get a better idea if
 we need to refresh a day or not.  If you run the above queries, I think
 I'll have enough info to get a fix in prior to the 0.19 release.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/333>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list