Jump to content

Too many tables?


woolyg

Recommended Posts

Hey all,

 

How many tables are too many in a MYSQL DB, do you think? I've divided up all my info into 2-field tables, all linked by indexes. At the moment, there are about 70 tables, but that could go up to about 100. Has anyone had any issues with DBs with this amount of tables in?

 

Cheers,

WoolyG

Link to comment
https://forums.phpfreaks.com/topic/133302-too-many-tables/
Share on other sites

It's not about having too many tables.  Although the ideal thing is to have as few tables as possible while having the utopia of a management system running, you'e still going to end up with some "table overhead" regardless.  The key thing is organization.

 

2 fields per table sounds horrible.  Especially for 70 of them.  That's a nightmare it seems like.  I'm not SQL genious or anything, but yeah.  gives me chills.

 

The answer?  Organize better.

 

It's just like moving out of your home.  Sure, it's great to have 70 boxes on hand, but you're not just gonna put to types of items per box.  Hats and shirts in one box.  socks and deodorants in another (mind you they're all the same sized boxes).  I hope that made sense or I'm just too tired to make analogies now.

Link to comment
https://forums.phpfreaks.com/topic/133302-too-many-tables/#findComment-693299
Share on other sites

MySQL says, there are users with more than 60000 tables in single database. As far as I know there is no hardcoded limit for that.

 

But zanus is right. 70 tables, each having two fileds is indicating you have some problems with your database design.

Link to comment
https://forums.phpfreaks.com/topic/133302-too-many-tables/#findComment-693322
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.