Solved

How to optimize the database design

Posted on 2007-12-06
9
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
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…

740 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