For a project we having a bunch of data that always have the same structure and is not linked together. There are two approaches to save the data:
- Creating a new database for every pool (about 15-25 tables)
- Creating all the tables in one database and differ the pools by table names.
Which one is easier and faster to handle for MySQL?
EDIT: I am not interessed in issues of database design, I am just interessed in which of the two possibilities is faster.
EDIT 2: I will try to make it more clear. As said we will have data, where some of the date rarely belongs together in different pools. Putting all the data of one type in one table and linking it with a pool id is not a good idea:
- It is hard to backup/delete a specific pool (and we expect that we are running out primary keys after a while (even when use big int))
So the idea is to make a database for every pool or create a lot of tables in one database. 50% of the queries against the database will be simple inserts
. 49% will be some simple selects
on a primary key.
The question is, what is faster to handle for MySQL
? Many tables or many databases?