Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As long as my tables were less than 100, MySQL performed reasonably well but when they started to grow to more than a few hundreds, it (MYSQL) has become extremely slow. Now my tables are >1k and are very small and most contain less than 20-30 records.

Is there a specific MySQL setting which I should consider, in order for MySQL to perform better with large numbers of tables?

share|improve this question

What's slow? Are you doing mass inserts or complex joins and selects or simple queries? Database optimization is complex; the answer might be as simple as 'add an index' or as complex as tuning your caching or communication buffer sizes.

share|improve this answer

Try also these scripts for MySQL optimization: and

share|improve this answer

Try table_cache = 1024. It will eat up some extra memory, but it should definitely improve performance.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.