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 > MySQL > Max number of tables in Mysql database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-02, 22:56
chrisranjana chrisranjana is offline
Registered User
 
Join Date: May 2002
Location: chennai , tamil nadu , India
Posts: 17
Max number of tables in Mysql database

1 . Is there a maximum number of tables LIMIT per database in Mysql ?
2. splitting into smaller tables will increase performance compared to having large tables isnt it ?

chris
Reply With Quote
  #2 (permalink)  
Old 06-03-02, 02:18
user100 user100 is offline
Registered User
 
Join Date: May 2002
Posts: 16
Quote:
1 . Is there a maximum number of tables LIMIT per database in Mysql ?
2. splitting into smaller tables will increase performance compared to having large tables isnt it ?
1. could'nt remember a database limit in mysql.

2. yes. build joins instead of large tables.
Reply With Quote
  #3 (permalink)  
Old 12-13-02, 21:42
chrisranjana chrisranjana is offline
Registered User
 
Join Date: May 2002
Location: chennai , tamil nadu , India
Posts: 17
custom php perl mysql programming

Thanks for the reply

Yes mysql join makes mysql queries efficient

But still I want to know how many tables a mysql database can hold ?
__________________
Chris, Director, Chrisranjana.com
Web Development company
Reply With Quote
  #4 (permalink)  
Old 12-13-02, 22:43
Paul Paul is offline
Administrator
 
Join Date: Feb 2001
Location: NC, USA
Posts: 200
Re: custom php perl mysql programming

Quote:
Originally posted by chrisranjana
But still I want to know how many tables a mysql database can hold ?
When using MyISAM table, the limit will be determined by your operating system, ie. the number of files you can have in one directory.

Using InnoDB tables removes that limitation by allowing multiple tables within a single datafile (tablespace).

The maximum tablespace size is 4 billion database pages. By default, a 'page' is 16K, but it is possible to recompile with 64K pages. This will allow a single tablespace size of ... 'BIG'.

A table will obviously take up at least one database page, meaning you can theoretically have a maximum of 4 billion tables per tablespace.

The number of tablespaces will again be limited by your operating system. Using NTFS on NT, the limit is 4,294,967,295. I imagine UNIX will be limited by the number of inodes. However, before reaching the physical limit of files you wil probably run into an issue with the maximum number of 'open' files allowed.

The first limit you hit will undoubtedly be that of your wallet while buying disk drives.
Reply With Quote
  #5 (permalink)  
Old 12-13-02, 23:57
chrisranjana chrisranjana is offline
Registered User
 
Join Date: May 2002
Location: chennai , tamil nadu , India
Posts: 17
custom php perl freelance mysql programming

just one word "WOW !"
__________________
Chris, Director, Chrisranjana.com
Web Development company
Reply With Quote
  #6 (permalink)  
Old 06-10-10, 06:26
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by infonama View Post
doesnt more join make you DB slow in retrieving data?
in a word: no

compare to the alternatives:

1. you need the data but don't perform the join, leaving your query results useless

2. you decide not to normalize, resulting in even slower queries
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 06-10-10, 06:54
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by infonama View Post
got your point already in my posted thread. thanks for all the assistance
well, you asked twice, i answered twice

what was i supposed to do, leave the question unanswered? what if somebody else stumbles over this thread like you did?

by the way, you've won this month's prize for dredging up the oldest dormant thread -- eight years!!
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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