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...Performance and...Performance and...UpdateUser timeoutsUpdateUser timeouts
Previous
 
Next
New Post
11/25/2013 7:23 AM
 

EventLog has about 2500 rows, I have restricted the count on most events.

SiteLog has 130k rows (14 days). I could disable the site log for now, haven't tried this yet.

 
New Post
11/25/2013 8:00 AM
 
If PortalID is provided, UpdateUser writes to both Users and UserPortals (query below).
It is difficult to see from the trace which update causes the timeout.
In this system, there is only one active portal (PortalID = 2).

Both tables have clustered indexes on the primary key columns, and UpdateUser looks up a row from both tables by primary key. Indexes are not fragmented and they are rebuilt regularly. There should be no way to improve this update by indexing more.
On the contrary, deleting some of the DNN's default nonclustered indexes on these tables might help, but I don't want to mess with the platform.

During the timeouts, it seems that any query from Users or UserPortals takes more than the 30s default for timeout. It is just this UpdateUser procedure that is executed most often.

CREATE PROCEDURE [dbo].[UpdateUser]
@UserID         int,
@PortalID int,
@FirstName nvarchar(50),
@LastName nvarchar(50),
@IsSuperUser    bit,
@Email          nvarchar(256),
@DisplayName    nvarchar(100),
@UpdatePassword bit,
@Authorised bit,
@RefreshRoles bit,
@LastIPAddress nvarchar(50),
@IsDeleted bit,
@LastModifiedByUserID int
AS
UPDATE dbo.Users
SET
FirstName = @FirstName,
LastName = @LastName,
IsSuperUser = @IsSuperUser,
Email = @Email,
DisplayName = @DisplayName,
UpdatePassword = @UpdatePassword,
LastIPAddress = @LastIPAddress,
LastModifiedByUserID = @LastModifiedByUserID,
LastModifiedOnDate = getdate()
WHERE  UserId = @UserID
IF @PortalID IS NULL
BEGIN
UPDATE dbo.Users
SET
IsDeleted = @IsDeleted
WHERE  UserId = @UserID
END
ELSE
BEGIN
UPDATE dbo.UserPortals
SET
Authorised = @Authorised,
RefreshRoles = @RefreshRoles,
IsDeleted = @IsDeleted
WHERE  UserId = @UserID
AND PortalId = @PortalID
END

 
New Post
11/25/2013 7:01 PM
 
Which DNN Version are you running and which Version of SQL Server (and database compatibility Level)?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/26/2013 2:17 AM
 

This site is running DNN 05.03.06 on IIS 7.5 / Windows 2008 R2 and SQL Server 2012 Standard with SQL2012 compatibility level. Upgrade to DNN 7.0.6 is planned later this year.

Compared to DNN 7.0.6, the only difference in the UpdateUser prodecure is that  05.03.06 doesn't have the @IsSuperUser bit.

 
New Post
11/26/2013 3:11 AM
 
you might need to reorganize indexes for users table and userportals, there is not much going on in the stored procedure.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...UpdateUser timeoutsUpdateUser timeouts


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