[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/29/2008 at 06:13AM PDT, ID: 23771154
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Is it efficient to have many thousands of tables in a single database?

Asked by carled in MS SQL Server

Tags: Microsoft, SQL Server, 2000

Just as a starter, we ONLY have access to SQL Server 2000 Enterprise, we cannot afford to get 2005 Enterprise!

I'm at a stage when I'm contemplating a new version of a small vehicle tracking system we have as we may soon franchise out our system to other small providers. Currently there are approx 1500 vehicles being tracked on our system. These vehicles generate anything up to 3,000 tracking events each per day on average, so we tend to get approx 2.5 million events hitting our database per day... and we store up to two months of data per vehicle so, as you can imagine, we have  a pretty big database!

At present, due to historical development, the whole system works off a single "events" table for ALL vehicles.  This is hit pretty hard and can be a bugger to maintain all the various indices without creating too much of a hit on the db... so I'm considering as an alternative having each vehicle with its own table, so rather than a single "events" table, I'll have (currently) 1500 "events" tables which will be suffixed by the vehicle ID, so events_1, events_2, events_3... events_1500.  My rationale for this is that 90% of the time (ok, maybe 70-80%!) the customer chooses an individual vehicle to either track on a map or do a historical report on, therefore there is little need to maintain many indices on each vehicle table beyond the basic ones of, say, datetimestamp and journeyID (each ignition on/off generates a new journeyID).

However, the down side of this approach appears to me to be that firstly there'll be thousands of near-identical tables knocking about the database and there'll surely be more system overhead for having so many individual tables?  I know (annoyingly) that in SQL 2005 enterprise it's possible to virutally partition tables on a column (and I could choose vehicleID) but like I said at first above, we can't afford the expense of SQL 2005 enterprise, so this is not an option).

There are many differing reports run from this huge single "events" file at present which use many of the different columns depending on which particular report is being run, so we have ended up with lots of different indexes on the file to cater for all these different reports and with so many events hitting the table each day, it seems to me that the system must have to spend a whole lot of time maintaining indexes...

Does anyone have any sensible opinions to offer on whether it's best to stick with maybe a simplified index single huge table or would I be better off going down the "thousands of tables" route instead?
[+][-]09/29/08 06:19 AM, ID: 22596035

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: Microsoft, SQL Server, 2000
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 4
Solution Grade: A
 
 
[+][-]09/29/08 06:27 AM, ID: 22596093

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/29/08 06:53 AM, ID: 22596379

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/08 07:48 AM, ID: 22596939

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/29/08 08:10 AM, ID: 22597177

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/08 09:30 AM, ID: 22597994

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/29/08 09:34 AM, ID: 22598026

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/08 09:40 AM, ID: 22598083

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/29/08 10:24 AM, ID: 22598504

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05/23/09 10:41 PM, ID: 24460589

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091028-EE-VQP-85 - Hierarchy / EE_QW_2_20070628