View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Nov 27, 2007 3:47 am 
Offline
Joined: Sun Apr 09, 2006 10:13 am
Posts: 46
Hi all, (this is with an R5B7 system)

My web UI takes a long time to load which I've traced to the fact that the date drop down list contains every day until September 2035! The backend status view also says "There's guide data until 2035-09-01 02:00 (10140 days)". I'm in the UK and getting my data over the air so really there is just data until next Tuesday.

Can you tell me what I need to check to try to fix this.

Thanks
-S

PS I have searched the forum for a similar issue but wasn't able to find anything.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 7:41 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Dropping your "video source" (listings), recreating it, and reloading the program data should clear the problem. If not, do a search here requiring all the terms "select from program" with me as the author. I helped someone with a similar "wild date" problem about a year or so back.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 7:55 am 
Offline
Joined: Sun Apr 09, 2006 10:13 am
Posts: 46
Hi, thanks for that. I've re-done the video sources a few times and I'm pretty sure this problem has gone across those re-builds. But I will try again.

I may need to read the other post you suggest. I tried the search but nothing seemed directly relevant. Sorry to be a pain but can you be more specific re the post?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 12:27 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
can you peek at the listings and tell me the Patriots schedule for 2021

Thanks :D

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 6:17 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Alright, sounds like you've got a bad value coming across for one of the dates. You might want to try something like this:
Code:
delete from program where starttime > now() + interval 15 day

You can run this like this:
Code:
mysql mythconverg -u root -e "delete from program where starttime > now() + interval 15 day"


Last edited by tjc on Mon Dec 17, 2007 7:00 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 6:04 am 
Offline
Joined: Sun Apr 09, 2006 10:13 am
Posts: 46
Thanks for the SQL. In the end re-doing the video sources did fix it. Sorry to put you to the bother of the extra post.

Btw, I'm creating a really cool mobile phone app that is based around TV schedules that gives recommendations, social networking around the shows and mobile video on demand. Now that I've sorted out the date issue I've done a basic integration with mythweb to allow the app to set a show to record. I'd be interested to get a few UK myth users try it out.

-S


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 6:33 pm 
Offline
Joined: Wed Jul 14, 2004 3:32 pm
Posts: 142
tjc, you are a diamond !!!

Thanks for that sql above. I was getting the same problem, and used the sql as above with a slight change, the required table to modify is called 'program', so the command to be used should be firstly

mysql -H mythconverg

then at the mysql prompt

delete from program where starttime > now() + interval 15 day;

_________________
Thanks in advance
Matt Shaw
matt@shagshaw.com

AMD Sempron 2400+ on Via Motherboard,
512MB Ram, 160GB IDE HDD,
Nvidia Geforce FX5500 128MB TV-Out,
2 x Twinhan DVB-T BT878 (Freeview UK)
KnoppMYTH R5F27


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 7:06 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
:oops: Corrected.

Most DB shops I've encountered use a standard naming convention that table/view names are plural and column names are singular to avoid certain types of confusion. It always throws me that the MythConverg schema doesn't follow this.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu