TokuDBgotchas:slowINFORMATION_SCHEMATABLES_MySQL
來源:懂視網
責編:小采
時間:2020-11-09 20:04:29
TokuDBgotchas:slowINFORMATION_SCHEMATABLES_MySQL
TokuDBgotchas:slowINFORMATION_SCHEMATABLES_MySQL: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 across, in hope it may help someone in their work with TokuD
導讀TokuDBgotchas:slowINFORMATION_SCHEMATABLES_MySQL: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 across, in hope it may help someone in their work with TokuD

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 across, in hope it may help someone in their work with TokuDB.
So, one problem I faced is thatSELECT * FROM INFORMATION_SCHEMA.TABLES
is 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; ... 1000rowsinset(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 have withtokudb_empty_scan=disabled
select * from information_schema.tables limit 1000;...1000 rows in set (3 min 4.59 sec)
select*frominformation_schema.tableslimit1000; ... 1000rowsinset(3min4.59sec) |
An impressive improvement, but still somewhat slow. Tokutek promises a fix to improve it in the next TokuDB 7.2 release.
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
TokuDBgotchas:slowINFORMATION_SCHEMATABLES_MySQL
TokuDBgotchas:slowINFORMATION_SCHEMATABLES_MySQL: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 across, in hope it may help someone in their work with TokuD