tags:

views:

56

answers:

3

Is it bad to have too many tables in a database? I have about 160 tables in one database. Is it better to split it into several database rather than using a single database? Single database is more convenient for me.

+3  A: 

There are no server limits on the number of tables in a MySQL database. You will definitely have no problems with 160 tables, and you don't need to split them into multiple databases.

You will not gain performance by splitting your tables into multiple databases. If performance remains an issue, you could consider using per-table tablespaces in order to place some sets of tables on different physical disks.

Daniel Vassallo
+1  A: 

160 tables isn't radically huge.

16,000 might be...probably would be...more unreasonable - such databases exist in ERP or CRM systems (even into the 40-50K tables range, but many of those tables are not actually used, or are only barely used).

Even so, the typical DBMS will 'handle' such large databases, but there is more strain on the system catalog than usual in such systems.

Jonathan Leffler
+1  A: 

I have about 7000 tables in one database with no ill effects, other than displaying the table list in phpMyAdmin taking a while.

bemace