Solved

How to optimize the database design

Posted on 2007-12-06
9
188 Views
Last Modified: 2010-03-19
I am trying to design a new database with trending and event data for devices at different site.

The data may keep coming in.

I am quite new in database design, may I know if there is any golden rules? Thanks
0
Comment
Question by:turbot_yu
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 25

Assisted Solution

by:imitchie
imitchie earned 100 total points
ID: 20425875
Some rules for convenience:
normalize tables
design fill factors properly
design growth factor for performance
use identity columns on all tables
0
 

Author Comment

by:turbot_yu
ID: 20425935
May you give detail info of
normalize tables
design fill factors properly
design growth factor for performance
0
 
LVL 11

Accepted Solution

by:
saleek earned 200 total points
ID: 20426436
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 18

Assisted Solution

by:Yveau
Yveau earned 200 total points
ID: 20430531
The DB hero on database design is Christopher J. Date.
One of his best books: An Introduction to Database Systems (ISBN 0-321-19784-4)

... that should get you firm in your seat as a db designer ...

Hope this helps ...
0
 

Author Comment

by:turbot_yu
ID: 20439228
I cannot afford for the book, also I need a RAID, which mode is better, thanks.
0
 
LVL 18

Assisted Solution

by:Yveau
Yveau earned 200 total points
ID: 20444607
RAID 10 is - in my experience - the best you can get for an OLTP database system.
But that is expensive as you have pretty much overhead ... RAID 5 is good ... RAID 1 is not very good and RAID 0 is not so good ... to put it in a nutshell ...

Hope this helps ...
0
 
LVL 22

Expert Comment

by:dportas
ID: 20456170
turbot_yu: You can afford RAID but you can't afford a book that will educate you on the subject which you are allegedly trying to learn...? Ignorance is far more expensive than knowledge so I would recommend two other books on design:

Information Modeling and Relational Databases by Terry Halpin
Practical Issues in Database Management by Fabian Pascal

Avoid RAID5 for databases. But seriously, you need to get more assistance than is possible in these forums.
0
 
LVL 18

Expert Comment

by:Yveau
ID: 20460519
@dportas: >> "Avoid RAID5 ..."
... ? Hey, that is a surprising statement. Based on experience ? Can you clear this one up for me please ?
I'm curious ! I use it for all my databases ... (In a SAN configuration) No bad experiences myself ...

Thanks, Yveau
0
 
LVL 22

Expert Comment

by:dportas
ID: 20460960
RAID5 is usually advocated by storage vendors or just taken for granted by storage purchasers, without thought for the type of system using it.

The biggest cost of RAID5 is the 4 x write penalty, particularly for database work which is read-write intensive. Also, RAID5 actually offers very little protection for databases. Databases work best when spanned over many spindles. More spindles means more failures. With RAID5 you are much more likely to have failures that result in data loss, which can mean the whole database has to be restored. Add to that the enormous overhead of even a single disk failure with RAID5. RAID5 is an incredibly bad deal.

You can find supporting data in some detail at Mogens Nørgaard's excellent site:
www.baarf.com
which was established specially to make the case against RAID5 for databases.

Also, there are slides by Dr Jim Gray (now very sadly missed, alas) at:
http://loci.cs.utk.edu/dsi/netstore99/docs/presentations/keynote/sld031.htm

(Last year, Mogens and myself both attended a memorable lunch with Dr Jim Gray at which Jim enthusiastically endorsed the idea of abolishing RAID5)
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Find results from sql within a time span 11 46
SQL replication over high latency link 10 60
Mongo DB 18 62
How can I get the entire database script? 7 12
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question