Max tables in a MySQL database

前端 未结 5 876
没有蜡笔的小新
没有蜡笔的小新 2021-02-19 07:19

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? Sin

5条回答
  •  青春惊慌失措
    2021-02-19 07:49

    160 is still ok. it makes SQL command more faster than making too many contents under a single table. In my case I have 8,545,214 tables in a single Mysql database. I dont want to store millions of user in a single database that's why I used multiple table to store each post a user done. it makes mysql more faster than searching on a single table with millions of rows.

提交回复
热议问题