Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Database trouble with dbo.GetScheduleNextTaskDatabase trouble with dbo.GetScheduleNextTask
Previous
 
Next
New Post
9/25/2007 4:13 PM
 

Above is the solution. However, do not forget to re-run sql statement after you upload a new module :-).

 
New Post
9/28/2007 5:03 PM
 

hmm...I still get about 4 error logs about duplicate keys....I do not have a clue. How to extend the log viewer that more data is put from the scheduler?

 
New Post
10/2/2007 12:03 PM
 

I found out that this scheduler event causes the problem: DotNetNuke.Services.Scheduling.PurgeScheduleHistory

The question now : why?

 
New Post
1/3/2008 1:19 PM
 

I started having performance issues and found that GetSchedule and GetScheduleNext stored procs were taking almost 90% of the database server processing time. With some research and information found here, I identified my problem. The Job "DotNetNuke.Services.Scheduling.PurgeScheduleHistory" started erring (database timeout) about a month ago. I had set it to run once a day and apparently that was not enough. Once it started erring the ScheduleHistory table started growing. Since the retry is also set to a day, the process would only try once a day and it would timeout every day.  The table got pretty large (~100000 rows) and that caused the two stored procs to take longer than they should ( I did run the tuning adviser also and the indexes were fine) . To fix the problem I created a database job that used the same code as the PurgeScheduleHistory stored proc (with a slight alteration). I found that I could delete around 200 of them in a few seconds so used this script and set the schedule to run once a minute (I did this to throttle the cleanup and not impact performance on the production server):

DELETE

top (200) FROM dbo.ScheduleHistory

FROM

dbo.Schedule s

WHERE

 

(

 

SELECT COUNT(*)

 

 

FROM dbo.ScheduleHistory shWHERE

sh

.ScheduleID = dbo.ScheduleHistory.ScheduleID AND

sh

.ScheduleID = s.ScheduleID AND

sh

 

.StartDate >= dbo.ScheduleHistory.StartDate) > s.RetainHistoryNum

AND

 

RetainHistoryNum<>-1 and startdate < '1/3/2008' --I used a date that was a day earlier than today so the DNN job would work after the cleanup

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Database trouble with dbo.GetScheduleNextTaskDatabase trouble with dbo.GetScheduleNextTask


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out