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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 4.9.4 to 5.1.4 - Now site is really slow?Upgrade 4.9.4 to 5.1.4 - Now site is really slow?
Previous
 
Next
New Post
10/12/2009 2:14 PM
 

enable logging in sql server to get to know execution periods and nail down bottlenecks.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/12/2009 9:17 PM
 

It looks like the follow SQL is part of the problem.
It gets executed 3-6 times for a single page load, and the duration is 280000.
It doesn't run unless the user is authenticated.
Anyone know what this is from?


if
exists
(select * from dbo.sysusers where name='MY_SQL_USERNAME')
begin
 declare @exec
 nvarchar(2000)
 declare @name varchar(150)
 declare
sp_cursor cursor for select o.name as name
   from dbo.sysobjects o
   where ( OBJECTPROPERTY(o.id, N'IsProcedure') = 1 or OBJECTPROPERTY(o.id, N'IsExtendedProc') = 1 or OBJECTPROPERTY(o.id, N'IsReplProc') = 1 ) 
   and OBJECTPROPERTY(o.id, N'IsMSShipped') = 0 and o.name not like N'#%%' and (left(o.name,len('')) = '' or left(o.name,7) = 'aspnet_') open
 fetch sp_cursor into @name
 while @@fetch_status >= 0
   
begin
     select @exec = 'grant EXECUTE on ' + @name + ' to [MY_SQL_USERNAME]'
    execute (@exec)
    fetch sp_cursor into @name
   end
 deallocate sp_cursor
end

 
New Post
10/13/2009 9:51 AM
 

 this doesn't look like a dnn stored proc, it might belong to MS membership but I haven't noticed it yet and it seems to be a procedure for upgrades only. does it fail due to missing permissions and therefore gets repeated again and again?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/14/2009 6:10 PM
 

I'm not sure why it is running that line over and over, but after turning on more detail in SQL Profiler trace, I see that also on every single page load it is granting EXECUTE permissions to every SP in my database to the site's SQL user.

For Example image the following statement for every single stored procedure in my database:
grant EXECUTE on GetTabPermissionsByPortal to [MY_SITE'S_SQL_USERNAME]

Again, this only happens if the user is authenticated, and after to upgrade to DNN 5 from DNN 4.9.4
 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 4.9.4 to 5.1.4 - Now site is really slow?Upgrade 4.9.4 to 5.1.4 - Now site is really slow?


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