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...not saving the changesnot saving the changes
Previous
 
Next
New Post
9/22/2013 9:54 AM
 
PS: In host settings, make sure that you set Caching to "heavy" and use module output caching, wherever possible.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/23/2013 1:53 AM
 
Thank You Sebastian, I was trying t run your scripts through SQL > HOST. But some scripts are not running and giving errors.

for an example these two scripts.

1) CREATE NONCLUSTERED INDEX IX_{objectQualifier}UserPortals_VanityUrl ON {databaseOwner}[{objectQualifier}UserPortals]
(VanityUrl)










2) CREATE FUNCTION {databaseOwner}[{objectQualifier}FitsExtendedPropertyPermission](
@viewingUserId int,
@viewedUserID int,
@extendedPermissions nvarchar(2000)) RETURNS bit
AS
BEGIN
DECLARE @rolesStr nVarChar(2000) = ''
DECLARE @reltnStr nVarChar(2000) = ''
DECLARE @gStartPos int
DECLARE @rStartPos int
DECLARE @recCount int = 0
DECLARE @SQL int
If (@viewedUserID > 0 and Len(IsNull(@extendedPermissions,'')) > 2) BEGIN
SET @gStartPos = CHARINDEX('G:',@extendedPermissions) + 2
SET @rStartPos = CHARINDEX('R:',@extendedPermissions) + 2
if @gStartPos > @rStartPos BEGIN
SET @rolesStr = SUBSTRING(@extendedPermissions, @gStartPos, Len(@extendedPermissions) - @gStartPos)
if @rStartPos > 0 SET @reltnStr = SUBSTRING(@extendedPermissions, @rStartPos, @gStartPos - @rStartPos - 1)
END
If @gStartPos < @rStartPos BEGIN
SET @reltnStr = SUBSTRING(@extendedPermissions, @rStartPos, Len(@extendedPermissions) - @rStartPos)
if @gStartPos > 0 SET @rolesStr = SUBSTRING(@extendedPermissions, @gStartPos, @rStartPos - @gStartPos - 1)
END
If @rolesStr <> '' BEGIN
SET @rolesStr = ',' + SUBSTRING(@rolesStr,1, Len(@rolesStr) - CASE WHEN RIGHT(@RolesStr,1) = ';' THEN 1 ELSE 0 END)
SELECT @recCount = COUNT(1) FROM {databaseOwner}[{objectQualifier}UserRoles] WHERE UserID = @viewingUserId AND @rolesStr LIKE '%,' + Convert(nvarchar(10),RoleId) + ',%'
END
If @recCount = 0 AND @reltnStr <> '' BEGIN
SET @reltnStr = ',' + SUBSTRING(@reltnStr,1, Len(@reltnStr) - CASE WHEN RIGHT(@reltnStr,1) = ';' THEN 1 ELSE 0 END)
SELECT @recCount = COUNT(1) FROM {databaseOwner}[{objectQualifier}vw_RelatedUsers] WHERE UserID = @viewingUserId AND relatedUserID = @viewedUserId AND @reltnStr LIKE '%,' + Convert(nvarchar(10),RelationShipID) + ',%' AND Status = 2
END
END
RETURN CASE WHEN IsNull(@RecCount, 0) > 0 THEN 1 ELSE 0 END
END





So I revert back my database to the old one again.

Please can you confirm if this SQL scripts are running on DNN 7.0.6 version as well? (upgraded from DNN 5.X time to time)

I have to remove the "GO" command at the end of each sqls and if I run it with that, giving errors. not sure why.

If you can give us a final SQL script file without errors, that would be great.

However I believe it would good if you can improve the DNN in the next release with allowing to have more number of folders in a DNN site without performance issue.

Appreciate yours supporting and advising.
 
New Post
9/23/2013 2:40 AM
 
Y Ma, the script has been created specifically for DNN 7.1.1 and tested with this version only. If you plan to use it on previous versions, you need to make sure, subsequent versions did not alter the structure of the tables or views involved or the signatures of a procedure/function.
Especially the first index will work on DNN 7.1.0 and later only, since the column involved had been added in DNN 7.1.0.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/23/2013 3:16 AM
 
The reason is to be with DNN 7.0.6 is, once I upgraded to DNN 7.1, the site/module settings were not loading and any popup were not loading. So I revert back to the older version DNN 7.0.6.

Anyway I am going to try again with DNN 7.1.1 version and then will try with the script you sent me.

Between the following is the reply from my hosting provider. Please let me know if you have any idea regarding this. Not sure whether they are correct. Thanks a lot for your great support.

"The application pool is recycling because the Worker Process keeps hitting it's Private Memory Bytes cap.
Your cap was apparently already moved up to 700000KB. I moved it up once more to 850000KB.
However, that has to be an issue with your code - some part of your application or plugin is causing a memory leak. "
 
New Post
9/23/2013 8:38 AM
 
memory leak might be caused by a 3rd party module - but the right one is hard to identify.

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...not saving the changesnot saving the changes


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