TokuDBgotchas: slowINFORMATION_SCHEMATABLES_MySQL

Source: Internet
Author: User
TokuDBgotchas: slowINFORMATION_SCHEMATABLES We are usingPercona Server + TokuDB engineextensively inPercona Cloud Toolsand getting real usage operational experience with this engine. so I want to share some findings we came into SS, in hope it may help someone in their work with TokuDB.

So, one problem I faced is thatSELECT * FROM INFORMATION_SCHEMA.TABLESIs quite slow when I have thousands tables in TokuDB. How slow? For example...

select * from information_schema.tables limit 1000;...1000 rows in set (18 min 31.93 sec)

Select * frominformation_schema.tableslimit1000;

...

1000 rowsinset (18min31. 93sec)

This is very similar to what InnoDB faced a couple years back. InnoDB solved it by addingvariableinnodb_stats_on_metadata.

So what happens with TokuDB? There is an explanation from Rich Prohaska at Tokutek: "Tokudb has too much overhead for table opens. tokuDB does a calculation on the table when it is opened to see if it is empty. this calculation can be disabled when'tokudb_empty_scan=disabled'."

So let's see what we havetokudb_empty_scan=disabled

select * from information_schema.tables limit 1000;...1000 rows in set (3 min 4.59 sec)

Select * frominformation_schema.tableslimit1000;

...

1000 rowsinset (3min4. 59sec)

An impressive improvement, but still somewhat slow. Tokutek promises a fix to improve it in the next TokuDB 7.2 release.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.