Reducing the Views

I must admit that during the development time of my system I have been abusing our server to take full control on the handling of data leaving the client computers quite spoiled with their processor though the network bandwidth felt the pressure of traffic as I throw all the major transaction on their main highway. Having 1Gbps bandwidth in our switch and a dual processor in our Intel Xeon server makes me put those entire machines to their limits. I just can't believe that a file base single task database in a 2.6a FoxPro database perform so smooth in an environment like this. Which leads me to a simple question what about a database server that is created for multi-tasking? It did perform very well during the test run all my frustration and fears was quite solve but not after a rigorous analysis and observation of the performance in Sql Server 2000 plus redesigning the database table and Visual Basic codes.

At the second week of May I have fears that I would add up another 4,000 views just to execute one report. Imagining the number of task I have add up I began to look things ahead of me and finally come up with a conclusion that it will took me another 2 months just to make those views. Not that they where difficult but rather due to the number of views that must be combine and build everything will be bloated. As I internalize about the situation I have realize that I was very much abusive and dependent on SQL Views that I almost forgot the power of the programming language to solve certain scenario. Then on the next day as I execute and use the programming language it only took me half day to get the job done as compared to the views that I have coding over and over again. It did reach the peak of 6,456 before I came into my senses that hey I’m using kindergarten moves.

In summary, just imagine the comparison if I proceed with the views it would take me another 2 months to complete the report while when I use the programming language it only took me half day. Thank God! Here is the shot after I trim the unnecessary views.

Photobucket - Video and Image Hosting

Guess what? I'm a happy geek! more work to go...

Comments

Jane Smith said…
i have NO clue what ur talking about but YHEEEEY!!! WOHOOOOOOOOOO!!!
Anonymous said…
Hey maks, let me guess your using SQL Server 2000 Personal Edition? am i right? Anyways, why not use T-SQL its much faster.
Anonymous said…
redesign ur system dude. 4,000 views and counting eh? 4GB of RAM cannot keep up with that much. Been running SQL Server with moderate tables, views, stored proc and it's taking up 200MB of mem plus 700MB of virtual mem... tweak also ur sql serv to maximize mem use. i rememeber you have to put something in boot.ini, a switch, if you have 1.5GB of ram or more to maximize the efficiency of sql srvr(or i think its exchange hmmm)...
maks said…
Hi Jane hehehehe I guess you should try it one of this day's :D

Nope im using SQL Server 2000 Enterprise Edition. Thenks for the help I will check on T-SQL.

Our current server has a 2GB of ram and it's doing great. Some modules are being used for almost 6 months now. So far so good. Don't worry ill take note on those things you said to me and look for an answer
denzity said…
I didn't understand the whole scenario completely, but I am glad you found a way to solve the dilemma. I'm still massaging my head due to a minor headache your post caused me understanding about views,servers and all. My, I am ashamed having described my blog "computers, gadgets, etc" when I can't even understand those database-programming stuff. Silly me [waaaahhhhhh!]
maks said…
hahaha don't be dens we all have our own personal strengths the only difference lang is I just spend more time in database problem thats why Im as weird as this but hey you have a very good skills in giving out point of views and a very informative blog. It really depends on what you really love the most.
maks said…
Reading again may own post makes me realize that I was very much assuming that my audience have been with me all the time since I started my project. Ok the next time I post something related to this I will do my best to be as detailed as possible in order for you guys to understand. I will do my best.

Popular posts from this blog

John Gokongwei Speech before Ateneo 2004 Graduates

SM Mall of Asia

GWT+MySQL Best Practice