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...Administration ...Administration ...How do they do that?How do they do that?
Previous
 
Next
New Post
1/21/2006 8:04 PM
 

 How does DNN mask the url so that there are friendly urls (http://www.dotnetnuke.com/aboutus/tabid/795/).  I have looked for those directories and they don't exist. It is my understanding that the default.aspx page readers all the pages including the admin pages, so how does DNN do it?

 

 

Also does DNN open a connection to the database every time a page is loaded? Doesn't this affect performance on slower servers?

 

Thanks

 
New Post
1/21/2006 11:17 PM
 

Hi Kanden,

The friendly URLs are done with smoke, mirrors and redirection.  The redirection in the form of Tigers, large amounts of flame and the occasional beautiful woman.

No really the friendly URLs are the result of putting a check in the check box that says "Use friendly URL's' on the host menu.  This check box being set true tell the software to use the URLRewrite module in a different way that results in easier to read url's.

You understand right about the default.aspx file.  It's used for everything even if you have other parent or child portals they all are generated with the default.aspx page in the root directory.  This happens from interaction with the database and the variable called http_referrer at first and then drive by things being passed back to the server from your browser.

A connection to the database gets opened and closed with every access to the page, at least on my installs.  There are all sorts of arguments to be made for keeping one connection open but you would then run into a lot of issues of table and row locking problems, out of date data being sent to clients, server resources leaking and more.  In general you want to make a quick request to the DB and get a burst of data, process it then burst it back to the DB to do it's thing with the new data.  There are also resource issues with the web server, iis, of keeping DB connections open longer than you really need.  Especially if you open the connection per session.

There is a little tiny slow down in the response of getting all the data from a DB every time as opposed to having static pages. But if you are not loading thousands of records you will never notice it.  Sites that do show large amounts of data from databases generally using paging, showing you the first chunk while pulling the rest in the background.

DNN also uses caching for modules so some of this data gets kept in memory or on disk depending on the setting you are using.  This mitigates some of the slow down you would normally see.  The first time you access a DNN site after the application starts you will notice it takes it a little bit to show up.  This is the code loading the cache and displaying it for the first time.  After that first time things are quicker because less info has to be called from the DB.

Hope I helped out a little.

Cheers,      


Paul Davis
 
New Post
1/22/2006 4:17 PM
 

Arthur Clarke's third law of prediction is one of my favorites in preliminary design...

Arthur C. Clarke formulated the following three "laws" of prediction:

  1. When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
  2. The only way of discovering the limits of the possible is to venture a little way past them into the impossible.
  3. Any sufficiently advanced technology is indistinguishable from magic.

And Gregory Benford's corollary is one of my personal favorite phrases in the context of architecture review *grin*

Gregory Benford's Corollary to Clarke's Third Law: Any technology distinguishable from magic is insufficiently advanced. (Foundation's Fear, 1997)


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
1/23/2006 9:07 AM
 
Thanks,
 
New Post
1/23/2006 8:39 PM
 

Scott I bet we would get along great working in the same office.  :)  And probably drive everyone else nuts.  I used to have Gregory Benfords Corollary as a tag in my e-mail signature until the CEO told me to stop as he was tired of trying to explain it to people.  :)

Cheers,


Paul Davis
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How do they do that?How do they do that?


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