Solved

How to optimize the database design

Posted on 2007-12-06
9
183 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
 
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Read about achieving the basic levels of HRIS security in the workplace.
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now