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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Caching Extentions needed for seprate database per client Caching Extentions needed for seprate database per client
Previous
 
Next
New Post
12/10/2008 7:16 AM
 

We have requirement of seperate database for each child portal. So in part of solution we have seperate database having core dnn table in all of them. further the sql provider is modified to provide a different connection string based on portalID

Now we have one code and n number of client database with one application cache. 

The problem is with cache items. The cache key may be same for different client( hypothetically same tabID). This may lead to incorrect behaviour in terms of data in the cache depending  on client the request comes first. The solution we are implemanting  is to have append the uniquename + portalID in cache key via  cache provider so that each cache items are insulated from each other. 

Please note that http context is unavailable in these cases. The portalID goes for the toss.
Does scheduler, codes in thread will impact this implementation? is there any other way to insulate cache key from mixing up?

 

 

 
New Post
12/10/2008 8:23 AM
 

i may be dumb, but why not just use different dnn instances?


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
12/10/2008 9:02 AM
 

Thanks Eric. Yes having seperate instances of is the good choice. This would have seperated the application cache itself. This works. The issue comes with the maintainablity. There is *must have* requirement to run only one instance of code.The application will be hosting hundreds of client with custom modules(hundreds of them) developed for the application. And there is _need_ to run it under one code (including set of dll). The whole idea is to have master set of say X module in one instance of DNN and cater to clients needs by mixing and maching modules. 

Comming back to original Question, Do you see major hurdles in application cache if database are seperate?

 

 

 
New Post
12/10/2008 11:27 AM
 

I am with Erik on this one, if you must have a separate DB for each, do a separate installation of DNN for each.

Trying to break the mold and modifying the core to point selectivly to different databases is most likely going to either A cause you major pain at some point, or at minimum make it so upgrades are not possible.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
12/10/2008 2:58 PM
 

You might try using a Differencing Disk set up.  If you created your base install on a parent vhd and then locked it as readonly, you could then proceed with child .vhd from the parent.  Have a look at the html help files of Microsoft Virtual Server, its a free download.

The result should be mutiple unique children environments from a single parent code base, I doubt each child would even be aware of its siblings, much less collide.

I do this to test against multiple access clients,however the scale you are referring to is a whole different ball game.

Let me know how big of mess this makes.

enjoy,

Cliff Nelson

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Caching Extentions needed for seprate database per client Caching Extentions needed for seprate database per client


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