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 … 115 116 117 118 119 … 1231 Next »
Deleting entries from gbpvr.db3 with SQLite (or Flushing entirely)

 
  • 0 Vote(s) - 0 Average
Deleting entries from gbpvr.db3 with SQLite (or Flushing entirely)
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#1
2009-07-16, 11:04 PM
I seem to have a lot of dormant entries in my gbpvr.db3 when I look at SQLite, and most of them seem to be from channels that I no longer watch (Unchecked channels in the Config).

Is there some way of flushing the database so that only entries which are valid for current channels, as well as existing recodded shows, are retained?

There are about 3133 entries in the db3 database, which seems a lot for 4 channels, 1~2 weeks epg max. Some I know are not assocaited with those channels.
k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#2
2009-07-17, 12:58 PM
jksmurf Wrote:I seem to have a lot of dormant entries in my gbpvr.db3 when I look at SQLite, and most of them seem to be from channels that I no longer watch (Unchecked channels in the Config).

Is there some way of flushing the database so that only entries which are valid for current channels, as well as existing recodded shows, are retained?

There are about 3133 entries in the db3 database, which seems a lot for 4 channels, 1~2 weeks epg max. Some I know are not assocaited with those channels.
k.

Yes. In SQLiteSpy try Execute|Vacuum Database.

Of course, it won't do much good if those records are still in use.

1) Make sure your EPG XML file only refers to channels you actually want to watch. Unchecking them in GBPVR is too late - they'll still be in the DB3 database.
2) You can't delete channels when you have a recording from that channel. I've been known to fix up the database records directly. You could probably export them, and fix them to refer to a channel you want to keep, delete them from the db3, then reimport them or use vidimport.
3) Make a GBPVR.DB3 backup (make lots of them when trying something new), make your changes, then vacuum.
4) Simplest, safest procedure is to do step 1 then start with empty.db3, rename to gbpvr.db3 and redo your setup of sources and import any recordings with vidimport. There are tools to export complicated BDA source mappings if you need them.

Have fun.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#3
2009-07-17, 10:59 PM
Wow, Thanks!

OK,
  1. the vaccuum thing I am clear on
  2. for the XML thing I deleted the XML's for the older channels (I haven't actually deleted the channels, just unchecked them)
  3. will backup db
  4. might use the Config Plugins Tab to export the recordings first!
Thanks again.... hmm... makes me nervous :o

vidimport? I currently use the GUI based MPEGImport, it is good for making the recording xml for import, but can't import without an error (I'd love someone to fix this!), so I use the config for that too.

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#4
2009-07-17, 11:44 PM
Well I had a wee play around with SQliteSpy, it was pretty good

I did the empty.db3 thing (after exporting my recording list), all went well, the only bear for me was I lost the setup of the recording sources with all the setting for channel changes etc etc. A lot of other config settings are in config.xml but not those.

sub, is there any way to export and reimport that information only? It would be really great not have to re-set that up again. I have 4 capture sources spread over 3 recording devices, some analog some digital, some user inbuilt tuners and some external recording sources so it gets all a bit complicated to re-input. I have been taking screen capture screems to try and remember it ...

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,691
Threads: 767
Joined: Nov 2003
#5
2009-07-18, 12:41 AM
Quote:sub, is there any way to export and reimport that information only?
Sorry, no there isnt.
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#6
2009-07-18, 01:49 PM
jksmurf Wrote:Wow, Thanks!

for the XML thing I deleted the XML's for the older channels (I haven't actually deleted the channels, just unchecked them)
You have to make sure that the channels are not in your EPG file. If you've "unchecked them" in whatever source pulls in your EPG, then it will keep them out of your GBPVR DB. If you just unchecked them from GBPVR's config, that won't keep the data out. The channel data and all prgrams will still be in your DB. If you use MC2XML, then you should use the -C channel file option to limit what gets into your DB if you want it kept small.

# -C <filename> set channel file (default = "mc2xml.chl")
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#7
2009-07-18, 01:56 PM
jksmurf Wrote:I did the empty.db3 thing (after exporting my recording list), all went well, the only bear for me was I lost the setup of the recording sources with all the setting for channel changes etc etc. A lot of other config settings are in config.xml but not those.

As I mentioned, there are export import tools for BDA channel mapping. They help some. I' don't do channel changing.........

Quote:is there any way to export and reimport that information only? It would be really great not have to re-set that up again. I have 4 capture sources spread over 3 recording devices, some analog some digital, some user inbuilt tuners and some external recording sources so it gets all a bit complicated to re-input. I have been taking screen capture screems to try and remember it ...

You can always open up your backup gbpvr.db3 and cut/paste into the new one. You can also get fancy and export using SQL, then reimport. SQLiteSpy lets you save your SQL queries, and I've got dozens that do little cleanup tasks or make changes to my db3.
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#8
2009-07-18, 02:04 PM
BTW, I assume you wanted this stuff out of your db3 to increase speed. If so, have you read this thread?
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#9
2009-07-18, 02:22 PM
dennit Wrote:BTW, I assume you wanted this stuff out of your db3 to increase speed. If so, have you read this thread?

Thanks dennit, no I hadn't seen that, interesting thread. Presume current ver of gbpvr hasn't added this in yet.

Removing the tuner and the EPG XML associated with it seems to have cut it down by a third :-)

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  how to use IR server suite with GBPVR zaprat 82 62,055 2018-11-18, 05:32 PM
Last Post: Len_Lekx
  GBPVR support for Hauppauge WinTV-HVR-1900 or Hauppauge HD-PVR (PAL) lchiu7 23 18,258 2014-05-15, 12:59 AM
Last Post: lchiu7
  GBPVR and NPVR jigster99 2 5,178 2013-02-16, 01:50 AM
Last Post: jigster99
  BBC HD / BBD 1 HD in GBPVR Pob 21 13,417 2012-10-05, 05:42 PM
Last Post: Pob
  tv guide empty in gbpvr works in pvrx2 slowtech 37 16,942 2012-08-27, 04:00 PM
Last Post: rscheller
  Unused gbpvr returns to life with minimal effort KS4UA 0 2,339 2012-03-18, 02:07 AM
Last Post: KS4UA
  Last version of GBPVR download? matthrolf 8 6,407 2011-11-16, 09:22 AM
Last Post: MixMan
  Is card emulation as easy with gbpvr as with npvr? martint123 3 3,375 2011-10-20, 07:13 PM
Last Post: martint123
  GBPVR Webserver does not work - Windows 7 Pro, 64 Bit Ijaja 6 4,427 2011-10-19, 07:21 PM
Last Post: Basher52
  GBPVR will not wake up XP computer from sleep keith_leitch 8 4,807 2011-10-10, 08:26 PM
Last Post: keith_leitch

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

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

Linear Mode
Threaded Mode