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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ASP.NET 2.0 Caching featuresASP.NET 2.0 Caching features
Previous
 
Next
New Post
12/8/2006 3:11 PM
 

Hi,

I have seen two videos on how caching can work on SQL2005 database with commandNotification and a different approach for the webserver with output caching to pages, controls and partial pages, etc. I am mostly interested in the sqldependency caching for the database. It seems very fast and detects automatically that the database data has been changed. Thus reducing the amount of database calls drastically.

I am trying to implement it to see what the effect on DNN and the SQL database is. Is there somebody else out there also trying this?

At least it requires some core modifications now.

Since this line needs to be added during application start. The DNN caching provider does not allow to do this I have seen in a glance:

Private

System.Data.SqlClient.SqlDependency.Start(ConfigurationManager.ConnectionStrings(

I have modified install.aspx and default.aspx and created a copy of DotNetNuke.Common.Global to be able to put the dependency start in the global.asax.vb

In the default.aspx in the root I have added:

<%

@ OutputCache Duration="20" VaryByParam="*" SqlDependency="CommandNotification" %>

Then I have run next to see if dependancy caching is on.

select name, is_broker_enabled from sys.databases

It was not. So I enabled it:

ALTER DATABASE DNN1 SET ENABLE_BROKER

After enabling the cache dependancy on some tables, I do not see a performance increase

However, the sql profiler still shows a lot of database calls. So I think I did not enable dependancy on the tables. But is there not a way to put dependancies on all tables except the logging, usersonline, and schedulehistory ? These tables are updated every time, so putting there sql dependency does not matter much.

However, I still see the same amount of requests in the profiler. What do I do wrong here? Is there anybody trying to do the same?

Jelle

"SiteSqlServer").ConnectionString)
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0ASP.NET 2.0 Caching featuresASP.NET 2.0 Caching features


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