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 > General > Database Concepts & Design > How to determine?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-11, 06:58
vknadagouda vknadagouda is offline
Registered User
 
Join Date: Sep 2011
Posts: 4
Angry How to determine?

Hi All Members,

Have joined this group just now....

Pl help in deciding what is the right approach......

Is it better to have more tables with less records or less tables with more records?
Reply With Quote
  #2 (permalink)  
Old 09-26-11, 10:56
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by vknadagouda View Post
Is it better to have more tables with less records or less tables with more records?
the latter
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 09-26-11, 12:49
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
I think that the answer depends on the specific problem, so either one might be right for a given situation. In most cases, I would agree with r937 that fewer tables with more rows are generally better.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #4 (permalink)  
Old 09-26-11, 23:56
vknadagouda vknadagouda is offline
Registered User
 
Join Date: Sep 2011
Posts: 4
How to determine?

Quote:
Originally Posted by r937 View Post
the latter

Thanks a lot.
I had the same feeling.

This raise other question, request you to calrify

In my plan of implementation will be using MySql. One table will grow upto 1 million records per year and this table will updated and queried heavily, how will the performance be affected? On a average there might be about 350 update threads and about 300 query threads happening almost at the same time.
Reply With Quote
  #5 (permalink)  
Old 09-27-11, 02:38
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
performance depends on existence of proper indexes on the table, and also on server tuning
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 09-27-11, 06:49
vknadagouda vknadagouda is offline
Registered User
 
Join Date: Sep 2011
Posts: 4
Since I have good number of updates happening, Indexes will affect the performance. Pl advice?
Reply With Quote
  #7 (permalink)  
Old 09-27-11, 07:40
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Quote:
Originally Posted by vknadagouda View Post
Since I have good number of updates happening, Indexes will affect the performance. Pl advice?
They will improve the performance of your update if the index covers your WHERE condition
Reply With Quote
  #8 (permalink)  
Old 09-27-11, 23:31
vknadagouda vknadagouda is offline
Registered User
 
Join Date: Sep 2011
Posts: 4
I thank all the members for sharing the knowledge.

Request is there any other feature which can be used in MySql to improve performance apart from server and optimizer tuning, pl let me know.
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