List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:November 18 2003 5:09pm
Subject:Re: 50 000 tables - table_cache
View as plain text  
In the last episode (Nov 18), Jrgen Winqvist said:
> I'm working with an application that uses a lot of tables. Apx 50k
> tables are accessed every 5 minuts and they are openened/closed
> constantly. There is a performance problem and i've changed the
> filesystem to reiserfs for better handling many files.  I also
> increased the open-file limit in both mysql and linux but i can't
> increase table_cache more than 16384 tables.

Switching to InonDB may help you here, since all tables are stored in
just a few tablespace files and the table cache is unused.

Also, the table cache is just a linked list, so if you're thinking
about rebuilding mysql with a higher hard table_cache limit, consider
whether you want it to be scanning a 50k-element list every time it
needs a table :)  16384 is probably too high as it stands.

	Dan Nelson
50 000 tables - table_cacheJörgen Winqvist18 Nov
  • Re: 50 000 tables - table_cacheChris Nolan18 Nov
    • Re: 50 000 tables - table_cacheJörgen Winqvist18 Nov
  • Re: 50 000 tables - table_cacheDan Nelson18 Nov
RE: 50 000 tables - table_cacheDan Greene18 Nov