NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 125 126 127 128 129 … 1231 Next »
Suggestion to improve guide load time

 
  • 0 Vote(s) - 0 Average
Suggestion to improve guide load time
teookie
Offline

Member

Posts: 112
Threads: 29
Joined: Nov 2007
#11
2009-01-28, 10:56 PM
I just made this "mod" and holy cow my EPG loads instantaneously now. I mean, it only took 5 or 6 seconds before but now it's so fast I cant pull up the guide quick enough to see any empty slots.

Thanks.
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#12
2009-01-28, 11:42 PM
from checking my logs, tv listings used to take 16 seconds to do its thing, it now takes 1 sec. Not sure of the real world difference as I "only" have 12 channels but "every little helps.."

Sounds like a good find for those with lots of channels.

On that point, I must confess that I really have no idea what I would do with 100's of channels! I get bored scrolling down though 12 channels in the EPG.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#13
2009-01-29, 05:14 PM
I did this last night, and I had to use the same SQL line as dennit:
Code:
create index programme_epg on PROGRAMME (channel_oid, start_time)
I was using SQLiteSpy as well, so it must have something to do with using that.

Seems to work as well... I don't know if one is better than the other, but my loading time is definitely quicker.
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#14
2009-01-29, 06:00 PM (This post was last modified: 2009-01-29, 06:05 PM by wtg.)
I don't know a whole lot about SQLite specifically, but database optimizers in general usually prefer a unique index to a non-unique one. I just assumed the two would be unique so I created mine that way out of habit.

Since it's obviously not unique for some people, better for anyone who tries this to create it without the unique condition now than to do so and have an EPG update fail should it try to load non-unique items later. I'll edit the first post to mention this.
scb147
Offline

Posting Freak

Posts: 806
Threads: 77
Joined: Nov 2006
#15
2009-01-29, 06:08 PM
wtg Wrote:I don't know a whole lot about SQLite specifically, but database optimizers in general usually prefer a unique index to a non-unique one. I just assumed the two would be unique so I created mine that way out of habit.

Since it's obviously not unique for some people, better for anyone who tries this to create it without the unique condition now than to do so and have an EPG update fail should it try to load non-unique items later. I'll edit the first post to mention this.
I wonder what sub thinks about this. He knows the database better than anyone else, so he should be able to tell us if the unique condition is a problem or not.

Like I said, it could just be a SQLiteSpy thing...
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#16
2009-01-29, 06:13 PM
No, I don't think it's SQLiteSpy.

The index gets created by the SQLite database engine regardless of the client used to issue the command. According to Dennit, he simply didn't get the database error message that a unique index couldn't be created when he used the SQLite Database Browser that I recommended.

It seems strange to me that a channel could have more than one program with the same start_time, but maybe EPG data gets messed up occasionally and this happens. Better to have the index defined as non-unique so this doesn't cause a problem than have it be unique and then cause an EPG update to fail.
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#17
2009-01-29, 08:10 PM
wtg Wrote:According to Dennit, he simply didn't get the database error message that a unique index couldn't be created when he used the SQLite Database Browser that I recommended.

Correct.
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#18
2009-01-29, 08:28 PM
How would one undo the creation of a unique index? Or convert it to non-unique?
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#19
2009-01-29, 08:59 PM (This post was last modified: 2009-01-29, 09:10 PM by dennit.)
HarryH3 Wrote:How would one undo the creation of a unique index? Or convert it to non-unique?

This should work:
drop index programme_epg

if it doesn't, use this:
drop index programme_epg on PROGRAMME

Edit: I'd suggest you vacuum the database after you drop the index. SQLiteSpy (http://www.yunqa.de/delphi/sqlitespy/) has a 'Vacuum database' menu option
User
Offline

Senior Member

Inglewood, California, USA
Posts: 366
Threads: 10
Joined: Oct 2005
#20
2009-01-29, 09:16 PM
Huge improvement loading my 45Mb database. I created a non unique index. It looked like Sub aproved so I gave it a try. I'll see how the epg update goes. Thanks for the tip wtg.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't scroll with mouse when Searching the Guide TimA-C 10 2,976 2023-06-26, 07:40 PM
Last Post: boggydoggy
  Audio buzzing second time recording launched. dennit 2 4,610 2012-12-09, 11:28 PM
Last Post: dennit
  tv guide empty in gbpvr works in pvrx2 slowtech 37 17,600 2012-08-27, 04:00 PM
Last Post: rscheller
  Need help remapping Channel guide and actual channels divinehammer 3 3,834 2012-01-20, 10:43 AM
Last Post: kayleigh
  Time Warner 4250HDC smajor 43 28,113 2011-07-17, 09:04 PM
Last Post: soccerdad
  TV Guide Color griffy 0 1,808 2011-05-08, 10:20 AM
Last Post: griffy
  How to get Sky Digital channel guide into GBPVR? bobster 34 11,655 2011-04-01, 08:10 PM
Last Post: bobster
  strange channel changing-works in guide but not recording WinoOutWest 18 6,287 2010-12-27, 10:17 PM
Last Post: sub
  epg guide for ATSC ota, no internet? sdowney717 26 12,513 2010-12-08, 08:37 PM
Last Post: SHIFT_paradigm
  Recordings getting stuck after end time keith_leitch 5 2,678 2010-12-07, 03:53 AM
Last Post: johnsonx42

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode