MySQL Forums
Forum List  »  InnoDB

Re: Help with Mysql with 100K+ Table
Posted by: Rick James
Date: November 15, 2013 05:09PM

> gonna have 100K+ tables

Bad. Each table is 1 or 2 files in a directory that corresponds to the database the table is in. Operating systems are not designed to perform well when you get past a few thousand files in a directory.

(Files: Always: .frm for schema. Optional: .ibd for data and index -- if you have file_per_table)

> open_file_limit of 64K

I think there is a hard limit of 16K somewhere. Whether it is 64K or 16K, this will further aggravate the problem by having MySQL reopening tables frequently.

So, what to do...

Let's look at _why_ you plan to have 100K tables. Let's look at the access patterns of them. (For example, if you never touch 99% of them, then the comments above don't really apply.)

Since there are many possibly reasons why you may have planned on lots of tables, I don't want to launch into enumerating them an providing alternatives; let's focus on your particular case.



Edited 1 time(s). Last edit at 11/15/2013 05:11PM by Rick James.

Options: ReplyQuote


Subject
Views
Written By
Posted
1279
November 14, 2013 04:34AM
Re: Help with Mysql with 100K+ Table
856
November 15, 2013 05:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.