?
Solved

How to optimize the database design

Posted on 2007-12-06
9
Medium Priority
?
192 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 400 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 800 total points
ID: 20426436
0
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.

 
LVL 18

Assisted Solution

by:Yveau
Yveau earned 800 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 800 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

764 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