NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 75 76 77 78 79 … 93 Next »
Doeast GB-PVR poll the database?

 
  • 0 Vote(s) - 0 Average
Doeast GB-PVR poll the database?
cginzel
Offline

Member

Posts: 192
Threads: 22
Joined: Dec 2004
#1
2005-03-08, 05:28 AM
sub,

I've been running the MSDE as my backend for a while now and things seem to be working pretty good. But I've noticed on occation that performance slows down and my CPU cycles from nearly zero to 100% utilization. I can see in the task list that the MSDE database is the one jumping up and down in CPU utilization so I put the profiler on it and I see GB-PVR is constantly issue a simple query against the database, over and over again...

SELECT * from PROGRAMME where oid = 193478

where the oid value changes each time.

Every now and then I see another statement sprinked in there:

SELECT * FROM RECORDING_SCHEDULE order by manual_start_time

What is GB-PVR up to?! Is this a normal process of GB-PVR or some hiccup between MSDE and GB-PVR?

-Charles
[SIZE="1"]NextPVR v2.3.4 on XP Home SP2
Rig: Dual Core P4 2.8GHz, 3GB Ram + 230GB HD
Media: WinTV PVR-150/MCE (2) + Media MVP 1000 (1) vD3A
Tools/Plug-ins: Weather, ComSkip, NEWA[/SIZE]
cginzel
Offline

Member

Posts: 192
Threads: 22
Joined: Dec 2004
#2
2005-03-08, 05:39 AM
Just a note here... I added a primary key on oid to the PROGRAMME table and that drastically reduced the CPU! PROGRAMME currently has 61,583 rows.

The repeating querys continue, but they finished much quicker now... I'd still like to know what GB-PVR is doing...

-Charles



[SIZE="1"]NextPVR v2.3.4 on XP Home SP2
Rig: Dual Core P4 2.8GHz, 3GB Ram + 230GB HD
Media: WinTV PVR-150/MCE (2) + Media MVP 1000 (1) vD3A
Tools/Plug-ins: Weather, ComSkip, NEWA[/SIZE]
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#3
2005-03-08, 01:54 PM
The GBPVR recording service approxiametly every 8 or 10 minutes will poll to retrieve the most current Recording Schedule. The methods that it uses poll against both the Programme table and the Recording Schedule table. All OIDs should have a primary key created or at least be indexed, otherwise it will take longer for the database to find the information (as you are noticing).

The public interface for the polling mechanism in the GBPVR plugin API is LoadRecordings from the ScheduleHelper object. The problem here is that for most uses, all you want is a list of currently available recordings, and don't need the added overhead that LoadRecordings introduces.

Another thing that you might want to do is setup a scheduled task to periodaclly delete the old expired programme records that currently don't have the OID being used in the Recording Schedule table. The current GBPVR process that is supposed to do this still doesn't seem to work correctly with SQL Server/MSDE. This alone will help speed up the queries as there won't be as much information to go through.
cginzel
Offline

Member

Posts: 192
Threads: 22
Joined: Dec 2004
#4
2005-03-08, 02:36 PM
[b Wrote:Quote[/b] ]Another thing that you might want to do is setup a scheduled task to periodaclly delete the old expired programme records that currently don't have the OID being used in the Recording Schedule table. The current GBPVR process that is supposed to do this still doesn't seem to work correctly with SQL Server/MSDE.
I will do that, Thanks!

-Charles
[SIZE="1"]NextPVR v2.3.4 on XP Home SP2
Rig: Dual Core P4 2.8GHz, 3GB Ram + 230GB HD
Media: WinTV PVR-150/MCE (2) + Media MVP 1000 (1) vD3A
Tools/Plug-ins: Weather, ComSkip, NEWA[/SIZE]
capone
Offline

Posting Freak

Posts: 1,756
Threads: 190
Joined: Jan 2005
#5
2005-03-08, 04:13 PM
I may be suffering from that one. Where would you add that?
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2005-03-08, 04:27 PM
Capone, one way to do this is to use Enterprise Manager, and under the Management folder within SQL Server Agent, create a new scheduled job that will run a T-SQL stored procedure or script that deletes all Programs from the program table that are less than the current date, and aren't being used in the Recording Schedule table. Set this up for a daily or weekly job, and it'll purge the data for you.
capone
Offline

Posting Freak

Posts: 1,756
Threads: 190
Joined: Jan 2005
#7
2005-03-08, 04:39 PM
Ah...ok. I've got SQL installed on my network, but just not on the pvr. I'll connect to from the server and play around.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Delete recordings from database but not from disk? spinnaker 8 3,745 2013-10-26, 10:51 PM
Last Post: spinnaker
  trying to fake npvr database for unit tests reven 3 2,236 2013-05-20, 08:53 AM
Last Post: reven
  Merged database queries mvallevand 4 2,050 2011-06-26, 09:56 PM
Last Post: mvallevand
  NPVR database questions mvallevand 25 9,776 2011-01-06, 12:58 AM
Last Post: jksmurf
  NPVR database - why so stringy with the fields?? :0) carpeVideo 4 1,984 2010-09-21, 01:48 AM
Last Post: sub
  NPVR Database connection ralphy 4 2,427 2010-09-15, 12:09 AM
Last Post: sub
  How can I reset the Music plugin's database? mkenyon2 1 1,880 2009-10-15, 06:43 PM
Last Post: psycik
  SheduleRecording() locks database cb123 3 2,474 2009-02-14, 06:33 PM
Last Post: sub
  accessing database fluffykeith 3 1,851 2008-07-09, 05:43 PM
Last Post: sub
  SQL database and backticks idkpmiller 6 4,065 2008-05-26, 08:32 AM
Last Post: idkpmiller

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

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

Linear Mode
Threaded Mode