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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Log Viewer unavailableLog Viewer unavailable
Previous
 
Next
New Post
2/7/2007 6:19 PM
 
ErikVB wrote

this would be even faster:

truncate table {objectQualifier}eventlog

You can do that from Host > SQL

Eric,

It's exectly what I've done manually.

My point is that PurgeEventLog SP doesn't do automatically due to timeout, what it is suppose to do. The SQL seems too slow:

DELETE FROM dbo.dnn_EventLog

FROM dbo.dnn_EventLogConfig elc
WHERE
    (
    SELECT COUNT(*)
    FROM dbo.dnn_EventLog el
    WHERE el.LogConfigID = elc.ID
      and dbo.dnn_EventLog.LogTypeKey = el.LogTypeKey
      and el.LogCreateDate >= dbo.dnn_EventLog.LogCreateDate
    ) > elc.KeepMostRecent
AND elc.KeepMostRecent<>-1
 
 Should I raise suggestion for optimization in Geminy?


Michael Freidgeim http://geekswithblogs.net/mnf
 
New Post
10/30/2007 6:49 AM
 

I am not sure if the SQL has been fix in later versions of DNN. But I've just read the article http://weblogs.asp.net/omarzabir/archive/2007/10/16/cleanup-inactive-anonymous-users-from-asp-net-membership-tables.aspx that uses select top N to make deletion time manageable:

-- No of users to delete per run. If it's too high, database will get stuck

   6: -- for a long time. If it's too low, you will end up having more trash than
   7: -- you can cleanup
   8: DECLARE @NoOfUsersToDelete int
   9: SET @NoOfUsersToDelete = 1000
select top(@NoOfUsersToDelete)

Michael Freidgeim http://geekswithblogs.net/mnf
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Log Viewer unavailableLog Viewer unavailable


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