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...Using Modules a...Using Modules a...tabController.AddTab() gets slow ramdomlytabController.AddTab() gets slow ramdomly
Previous
 
Next
New Post
8/19/2011 1:24 PM
 
Thanks for the reply.

I tried that and it didn't worked.... anything else?
 
New Post
8/19/2011 3:43 PM
 
Another piece of information is that now the admin site is generally slow, and when I try to update a page I get "The connection to the server was reset while the page was loading."
 
New Post
8/21/2011 3:33 PM
 
I think this problem is related to the numerous pages I have. Is there a way I can deleted a bunch of pages from the DB consistently?

I know this tables are involved:

Tabs
TabModules
Modules
TabPermission
ContentItems
 
New Post
8/21/2011 4:00 PM
 
I noticed a post from you on why you have so many pages i.e. you create one for each new news article. I would highly recommend you consider changing to a module that uses it's own tables - adding pages adds overhead as each has its own set of entries in multiple tables (as you've seen), and this impacts the system as a whole. Whilst DotNetNuke can run fine with many thousands of pages, you do need the database hardware to support that. Occasionally I see people using a page-model as they want to control the URL (to make it friendly) but this is not necessary e.g. take a look at the blog module and you'll see it uses it's own blog table but still supports friendly urls.

As to your question, you can use the tabcontroller.deletetab methods (there are a few overloads based on whether youre deleting hierarchys) - these will delete the pages and clean up -some of the data is cleaned up automatically by foreign key constraints but other parts (tabmodules and contentiems) are cleaned up within those methods.

Please note, if you delete a lot of pages you may want to clean down your eventlog (i.e. truncate table eventlog) as page deletes are a logged item (actually if you're suffering performance issues currently you probably want to clear that down as errors are logged also and a large eventlog can slow admin actions down)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/22/2011 4:48 AM
 
Once again thanks for your help... most of the time the site functions perfectly... changing our news module right now it's not an option... I did notice today that when it gets slow the following call to the API : tabcontroller.AddTab triggers a full update on ALL rows on the TABS table.

Can you take a quick look at the short trace I created?

http://www.4shared.com/file/kgAsL1Ao/bad.html?

As you can see this instruction:

exec dbo.UpdateTabOrder @TabId=1110,@TabOrder=1231,@Level=1,@ParentId=61,@TabPath=N'//Nacionales',@LastModifiedByUserID=1

is being sent for each tabid that I have on my database.

Any ideas?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...tabController.AddTab() gets slow ramdomlytabController.AddTab() gets slow ramdomly


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