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 > Data Access, Manipulation & Batch Languages > ANSI SQL > Performance Q's

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-25-05, 13:56
FAC51 FAC51 is offline
Registered User
 
Join Date: Jun 2004
Posts: 127
Performance Q's

more novice questions:

which uses most space a table or a column, and by how much? bytes/% etc?

is denormalization a good thing if it reduces the complexity of a design? & if it improves the semantics of a design?

is it normal for a schema to contain 80+ tables? if through amalgamating columns, which are related, i can shrink the no of tables down to around the 35-40 mark is this a good idea? although this will add extra columns of data to certain tables?
Reply With Quote
  #2 (permalink)  
Old 01-25-05, 17:10
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
I don't understand your first question, sorry ...

Denormalization: I'd say that - although it is good to have normalized tables - sometimes it is better to leave (some of) them denormalized if this improves performances (a dummy example: executing a report against a huge denormalized table could be faster than joining several huge normalized tables. Of course, you have to fill that table, probably using that joins, but this might be done in a matter of days/weeks/something, not in one session).

As of your third question ... number of tables can't be measured that way. There are applications that require small number of tables (for example, scoot/tiger schema), while - on the other hand - complex problems require much more tables (another example: my current project, which includes 3 "independent" teams with ~50 developers, has more than 200 tables).
It is up to you if you'll "shrink" number of your tables or not. If you think current condition isn't good, change it (if you can). However, keep in mind that "if something isn't broken, don't fix it" (meaning, you might make things worse instead of better).

P.S. Checked total number of tables as I returned to work ... 549 as of today. Gosh!

Last edited by Littlefoot; 01-26-05 at 02:25.
Reply With Quote
  #3 (permalink)  
Old 01-25-05, 23:41
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by FAC51
is denormalization a good thing if it reduces the complexity of a design? & if it improves the semantics of a design?
well, that's the problem, it doesn't reduce complexity, it increases it, and it doesn't improve semantics, it worsens it

in general, don't denormalize
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 01-26-05, 07:49
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Quote:
Originally Posted by Littlefoot
P.S. Checked total number of tables as I returned to work ... 549 as of today. Gosh!
Just checked mine: 1037 tables! I had a manager once who claimed that any database with more than 12 tables was "over-designed"
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #5 (permalink)  
Old 01-26-05, 11:29
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
And he was probably right LOL
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