473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Denormalized Database Inquiry

5
Hello,

Does anyone know the advantages and disadvantages to denormalized databases? And perhaps, why a denormalized database would be chosen over a normalized database?

Thank you!

Elizabeth
Apr 25 '07 #1
1 3031
This sounds like a great interview question. :-) So my simple practice has been (for general, mixed OLTP and reporting databases) that you start your design out pretty well normalized - 3rd normal form or close to it.

Then for purposes of reporting, or possibly high volume transactions, you can allow some denormalization to creep in. One common example would be for totals in an order, where the order consists of a master Order row and multiple LineItem rows. Each line item of an order has a quantity and unit price. To calculate the order totals you need to join with each LineItem row. In some cases this might be too slow, so you would add some TotalPrice and maybe TotalQuantity fields to the master Order row.

But then you'd take on the responsibility of keeping those total fields updated while editing LineItems. To keep everything database-centric, maybe you'd do that with a trigger on the LineItem table.

So, I have usually been able to avoid denormalization but I've often been lucky to work with lightly loaded hardware and/or light application loads.


Paul
Apr 25 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: nospammmer | last post by:
Hello group, I have a rather general but interesting inquiry that is related to PHP and I hope this is the appropriate place to post it. I'm looking for a way to improve dramatically the...
5
by: William Wisnieski | last post by:
Hello Everyone, I'm really stuck on how to design this application, so I thought I'd see if anyone had any general ideas on how to proceed. I'd say I'm an intermediate level Access developer. ...
2
by: Thomas R. Hummel | last post by:
Hello, I am currently working on a monthly load process with a datamart. I originally designed the tables in a normalized fashion with the idea that I would denormalize as needed once I got an...
4
by: segue | last post by:
Just Curious.
6
by: mperkins | last post by:
Hello. I have a curious problem. Occasionally executing a simple select against an AS400 DB2 database through JDBC fails with the following error: (SQLState = 57014) - java.sql.SQLException: ...
0
by: ArtDerailed | last post by:
Hello there, I too am having a somewhat similar problem and would very much appreciate some assistance. Through PHP, I have already set up my Flash actionscript to pass info and variables onto a...
1
by: sqshymnky | last post by:
Hello all, I know html but am sort of lost when it comes to PHP. I don't really know where to even begin to explain my problem. I am working on a site that deals with real estate. I have...
1
by: freeskier | last post by:
How can I import a denormalized CSV file into Access and maintain relational integrity? for example: csv(fname, lname, workphone, fax) person(personid, fname, lname) workerinfo(personid,...
2
by: nse111 | last post by:
I hv a form in my php file to accept some data from the user. Then as shown below I capture the data using PHP. the data is getting captured in the variables no prob with that. but the data...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.