"Databases" in mysql really are directories, do not affect its limits, regardless of whether you put all the tables in one or each of them.
The main problem is the table cache. Without configuring it, you will have a table cache by default (= 64 usually), which means that you close the table every time you open it. This is incredibly bad.
With the exception of MyISAM, this is even worse, because closing the table yields its key blocks from the key cache, which means that subsequent searches or crawls will read the actual blocks from disk, which is terrible and slow and should actually be avoided.
My advice:
- If possible, immediately increase the table cache to> the total number of tables
- Monitor the global OpenedTable state variable in your monitoring; if it grows fast, itβs bad.
- Test performance and reliability on the same equipment in a non-production environment (if you are not already doing this).
Markr
source share