Wednesday, March 7, 2012
Price performance
Running 6 or 7 customer service web applications that will operate as asp.net apps w/vb.net. These are database intensive applications but run a relatively light load with only 20 or so users accessing.
Running the 'customer service' portion of our web site that customers will use to access their account info, historical orders, order status, etc. These are also asp.net pages and are modestly database intesive. If I had to make a WAG, I would say that maybe 50 users on average to say 100 peak using these pages.
I plan on buying a single Xeon with say 2 GB of RAM, I'm not sure about the hard drives but something with suds.
So my question after that long tome is what's the tradeoff between RAM and extra processor. Given a fixed budget for the server, if I were to ask for additional funds I'm not sure if I should invest in additional processor or more RAM.
And also, I'm not sure about running the server for both internal and external applications. Obviously the internal apps could take a hit if things got busy externally. Is there any kind of best practice that advises against this.
Any ideas?aleviating contention is the driving force behind most server tuning processes. two disks better than one, two memory sticks instead of one, and multiple processors instead of one.
i've always thought that if all basic requirements have been met on the server and i have some money left over, that more processors are better money spent than memory.|||aleviating contention is the driving force behind most server tuning processes. two disks better than one, two memory sticks instead of one, and multiple processors instead of one.
i've always thought that if all basic requirements have been met on the server and i have some money left over, that more processors are better money spent than memory.Wow, I almost never see database servers that are "processor bound", mine are always constrained by either RAM or bandwidth (either backplane or network). Even when the application server resides on the same box as the database server, I rarely see the machine starving for CPU before it runs out of RAM!
I always find it interesting to hear other points of view, but that one really surprises me.
-PatP
Price of using multiple databases in SELECT statements
Hi,
We are discussing possible implementation for sql2005 database(s). This database will serve one web portal. Part of data will get into it by hand, and part will be replicated from internal system.
Some of us are for creating two separate databases, since there are two separate datasources. One, automatic, will change very little over time and requires almost no maintenance. Other datasource will be manual input. Tables and procedures related to this part will change over time.
Some of us are for creating single database, since it will serve one web site. More important this group is concerned about performance issues since almost every select will require join between tables that would be stored in two separate databases. Do these issues exist?
Can you share some insights, comments, links about this?
Hi,
We are using multiple databases in our many application, and have not found an excuse so far that we should terminate that practice. Most of our modules gather data from different databases and operate on them. I think a little performance overhead is there, which can be ignored.
As every approach has its pros and cons. But we think that this segregation provides us opportunity to
- encapsulate different type of data in separate locations,
- which can be backed up easily,
- can be distributed at different locations,
- due to lesser size data would be fetched rather fast,
- unorganized data could be separaterd.
Whats your take on it?
We too use multiple databases (on the same server, of course) and join across them -- there is no performance penalty that we've ever seen.
In our situation, we have a vendor package around which we've written an extended application. The vendor package uses one database and our extension uses another, but the two are intimately linked and we have views in the extention database pointing back to the vendor packages database (making it very easy to code. I recommend that you too use views to make it appear as though it's one big database.
Price Aggregation Question
Hi all,
I have a cube that has time, product, and location hierarchies. I also have the retail price for every transaction at the leaf level. I am having trouble writing the mdx to get the aggregation the way I need them.
In the time dimension, at the non-leaf level, i want the last retail price of the children in the time. ie: if I am at the quarter level, i want to show the price of period 3.
In both the Product and Location dimensions, I want the retail price to be averaged at the non-leaf levels such as Product category and Zip code.
I don't really know what the right approach is to make this happen, any advice is greatly appreciated.
Thanks,
Wino...
Hi Wino,
Based on my understanding of your scenario, and assuming you have AS 2005 Enterprise Edition, here's an approach to try:
Create a cube measure like [RetailPrice] on the "Retail Price" fact table field, using LastNonEmpty aggregation function.