Re: High Throughput Database
- From: "Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 1 Jun 2009 19:09:09 -0500
You mean physically the first column. When I use a Create Table command, it is simply the first column?
I mean the first column of the indexes. It doesn't have to be the first in the table.
--
Hope this helps.
Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/
"Derek Hart" <derekmhart@xxxxxxxxx> wrote in message news:%239BlNcw4JHA.140@xxxxxxxxxxxxxxxxxxxxxxx
"Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:O%23vBOzq4JHA.2656@xxxxxxxxxxxxxxxxxxxxxxxTo add on to Tibor's response, first and high-order are the same thing. The reason I recommend UserId as the first column is that it is (presumably) used in all WHERE clauses and will effectively logically partition the table. Only data for the specified UserId will be touched.
--
Hope this helps.
Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/
"Derek Hart" <derekmhart@xxxxxxxxx> wrote in message news:%23cHOOIo4JHA.1432@xxxxxxxxxxxxxxxxxxxxxxxCan you tell me what you mean by the high-order column?
"Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:ehXmani4JHA.1712@xxxxxxxxxxxxxxxxxxxxxxxI think 3 tables will provide the same performance as one set per user as long as UserID is the the high-order column of each index. Millions of rows isn't really that large nowadays with a properly indexed tables.
--
Hope this helps.
Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/
"Derek Hart" <derekmhart@xxxxxxxxx> wrote in message news:eQsNAai4JHA.1196@xxxxxxxxxxxxxxxxxxxxxxxI have a database system that saves tons of data per user, in a web database system. Each user could have 10,000 - 20,000 records. This is going to be used potentially by thousands of users, so the numbers head into the millions of records very quickly. There are only 3 tables that need this kind of storage, so I was considering having a new set of these 3 tables made on the fly as each new user joins. I was considering even making a new database per user. But that I come back to using the 3 tables for everybody, because the indexing has been well tested with millions of records. Any creative ideas on this? 10,000 users would potentially create 30,000 tables, so that's seems like a bit of a nightmare. Perhaps go a different route and learn about load balancing, and how the sql server pooling will work. Please give me your thoughts, especially if you have created web sites and database connectivity at this level.
.
- Follow-Ups:
- Re: High Throughput Database
- From: Derek Hart
- Re: High Throughput Database
- References:
- High Throughput Database
- From: Derek Hart
- Re: High Throughput Database
- From: Dan Guzman
- Re: High Throughput Database
- From: Derek Hart
- Re: High Throughput Database
- From: Dan Guzman
- Re: High Throughput Database
- From: Derek Hart
- High Throughput Database
- Prev by Date: Re: Find who is remotly logged into the ms sql 2008
- Next by Date: Re: execute as dbo in sql 2000
- Previous by thread: Re: High Throughput Database
- Next by thread: Re: High Throughput Database
- Index(es):
Relevant Pages
|