Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Database trouble with dbo.GetScheduleNextTask
Previous Previous
 
Next Next
New Post 9/25/2007 1:13 PM
User is offline J.O.
220 posts
9th Ranked


Re: Database trouble with dbo.GetScheduleNextTask 

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

 
New Post 9/28/2007 2:03 PM
User is offline J.O.
220 posts
9th Ranked


Re: Database trouble with dbo.GetScheduleNextTask 

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 9:03 AM
User is offline J.O.
220 posts
9th Ranked


Re: Database trouble with dbo.GetScheduleNextTask 

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

The question now : why?

 
New Post 1/3/2008 9:19 AM
User is offline gorreskime
15 posts
10th Ranked


Re: Database trouble with dbo.GetScheduleNextTask 

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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Database trouble with dbo.GetScheduleNextTask
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP