Question : .NET 3.5 Performance Questions (discussion)

I would like the opinions of the experts here, please be detailed and have some test scenarios that could be shown to prove (or support) your opinions.

Background:
I am building a CMS built with VB.NET 3.5.

It is a single directory with all the code needed to process and render the websites which are located inside the root directory something along these lines /Sites/SiteID/

Default.aspx in the sites root does the work based on which site should be shown.  Assume everything works as it should (which it does)

As of right now, all the content and templates (layouts) are pulled from XML files stored inside /Sites/SiteID respectively.  One template.xml file per site, and one pageID.xml per page per site.

On creation of each template/page the XML(s) are generated, and a record is stored in respective tables in a SQL 2005 database.

Currently, the only time the database is used is to pull the site(s) navigation menu(s), and to update/add/delete templates or pages.

Question:
What I am wondering is, what would be best for performance and scalability?

1) Should it stay the way it is, and pull all the renderable content/template from the XML files?
2) Should it pull and render everything from the database?
3) Should it pull (For XML) from the database and render the XML returned?

Answer : .NET 3.5 Performance Questions (discussion)

Since Q1_SUM_OF_BIS is derived in the column list, I'm not aware of any capability to use it in the same column list.

Assuming that you want this in a single statement/query and you can't create VIEWs, you might need to use a CTE to generate your base level derived columns; then refer to those in the final SELECT column list.

Tom
Random Solutions  
 
programming4us programming4us