| |
|
If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
|
 |

01-12-12, 10:48
|
|
Registered User
|
|
Join Date: Jan 2012
Posts: 2
|
|
|
Normalization and Query Performance
|
|
Hello Guys,
Basically I am doin a basic course in Database Design Management System in my BS I have read about normalization but had a problem in it. I want U guys to help me I need some technical specification regarding this topic.
My Query is:
"Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency. but as it removes anomalies form data it effect query performance and why does this happen???"
Take care 
|
|

01-12-12, 11:09
|
|
Window Washer
|
|
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
|
|
OK...WHO is teaching this course
They are going to say that the normalized model will slow down data access do to the number of joins associated with retrieving the data
That may be, but a denormalized structure INCREASES the risk of having data corruptions...so the speed you may incur (MAY) is offset by data corruption
So, if the bozo's want to say that retrieving data from a single table than many is faster...fine..can't argue with that...well maybe you could...but at what COST?
Bozo's
And not for nothing...ALL of my sprocs are sub second...even in the thousands of seconds...I know.. because I log their execution
Now...if Professor Bozo wants you to retreive 50,000 rows for a report, then there is something wrong with Professor bozo
ALSO..it ONLY Affects performance if the tables are not properly Indexed
|
|

01-12-12, 14:11
|
|
World Class Flame Warrior
|
|
Join Date: Jun 2003
Location: Ohio
Posts: 11,734
|
|
|
|
And retrieving data from a single table is not necessarily faster.
A denormalized dataset means a wider table, which means fewer records per page, which means more time required to search for individual pages. It also mean filtering by string-based values rather than more efficient numeric surrogate keys.
So, there are performance trade-offs either way, but the relational integrity of a normalized schema trumps all.
__________________
If it's not practically useful, then it's practically useless.
blindman
www.chess.com: "sqlblindman"
|
|

01-12-12, 16:17
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
|
|
Quote:
Originally Posted by blindman
... relational integrity of a normalized schema trumps all.
|
agreed
but a little disappointed you used a bridge metaphor instead of chess 
|
|

01-12-12, 16:23
|
|
Window Washer
|
|
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
|
|
|
|

01-12-12, 17:18
|
|
Resident Curmudgeon
|
|
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
|
|
Quote:
Originally Posted by Rizz84
Hello Guys,
Basically I am doin a basic course in Database Design Management System in my BS I have read about normalization but had a problem in it. I want U guys to help me I need some technical specification regarding this topic.
My Query is:
"Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency. but as it removes anomalies form data it effect query performance and why does this happen???"
Take care 
|
In general, as the data becomes more normallized performance improves. There are many factors that drive this performance increase, first of which is that normallized data takes less storage so more usable data can be held in faster storage than a non-normalized schema will allow. An important side effect is that queries against a normalized schema are statistically more likely to be logically correct so the user gets the answer on the first try instead of after multiple attempts and QA efforts.
-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
|
|

01-12-12, 18:52
|
|
Window Washer
|
|
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
|
|
You and I BOTH know that this is NOT The answer the Prof is looking for, however CORRECT it is
It's a pervasive perverted assessment
http://www.lcard****/~nail/sybase/perf/1088.htm
The answer the Prof wants is
"It impove pe-formANCE...AH YUP....bobby jean...get me my corn cob pipe"
|
|

01-17-12, 07:55
|
|
Registered User
|
|
Join Date: Dec 2007
Location: London, UK
Posts: 732
|
|
Normalization has nothing to do with performance because normalization defines only the logical features of the database (tables, attributes, keys, dependencies). Normalization says nothing about what the database looks like in physical storage or what optimizations can be applied to queries on it.
If and when you find that some schema change due to normalization affects query performance then that's because of insufficient physical database independence in the DBMS concerned. In other words the DBMS made some unwanted physical change even when you only required a logical change to the schema.
|
|

01-17-12, 10:25
|
|
Window Washer
|
|
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
|
|
Quote:
Originally Posted by dportas
In other words the DBMS made some unwanted physical change even when you only required a logical change to the schema.
|
Can I get a hit?
|
|

01-17-12, 16:54
|
|
Registered User
|
|
Join Date: Jan 2012
Posts: 2
|
|
Quote:
Originally Posted by Pat Phelan
In general, as the data becomes more normallized performance improves. There are many factors that drive this performance increase, first of which is that normallized data takes less storage so more usable data can be held in faster storage than a non-normalized schema will allow. An important side effect is that queries against a normalized schema are statistically more likely to be logically correct so the user gets the answer on the first try instead of after multiple attempts and QA efforts.
-PatP
|
This is what I am lookin for I think every one here is interpenetrating that it effect performance in a negative way but I personally think normalization increases performance Like only 1NF improves operations like SELECT and JOIN as search operations are reduced...I will really appreciate if some one will point me to the information It effect performance means It improves it as a byproduct and thats all...
My english is terrible so don mind it 
|
|

01-17-12, 16:56
|
|
Window Washer
|
|
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
|
|
They are going to say that querying 1 table is faster the querying 10
I'm not so sure that is case
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|