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.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Normalization and Query Performance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-12, 10:48
Rizz84 Rizz84 is offline
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
Reply With Quote
  #2 (permalink)  
Old 01-12-12, 11:09
Brett Kaiser Brett Kaiser is offline
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
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 01-12-12, 14:11
blindman blindman is online now
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"
Reply With Quote
  #4 (permalink)  
Old 01-12-12, 16:17
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by blindman View Post
... relational integrity of a normalized schema trumps all.
agreed

but a little disappointed you used a bridge metaphor instead of chess
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 01-12-12, 16:23
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
mates all?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #6 (permalink)  
Old 01-12-12, 17:18
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
Quote:
Originally Posted by Rizz84 View Post
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.
Reply With Quote
  #7 (permalink)  
Old 01-12-12, 18:52
Brett Kaiser Brett Kaiser is offline
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"
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #8 (permalink)  
Old 01-17-12, 07:55
dportas dportas is offline
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.
Reply With Quote
  #9 (permalink)  
Old 01-17-12, 10:25
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Quote:
Originally Posted by dportas View Post
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?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #10 (permalink)  
Old 01-17-12, 16:54
Rizz84 Rizz84 is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Quote:
Originally Posted by Pat Phelan View Post
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
Reply With Quote
  #11 (permalink)  
Old 01-17-12, 16:56
Brett Kaiser Brett Kaiser is offline
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
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On