In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Drop table table_name immediately frees up disk space, whether it's Innodb or MyISAM.
2. Truncate table table_name immediately frees up disk space, whether it's Innodb or MyISAM. Truncate table is actually a bit like drop table and then create. It's just that the create table process has been optimized, such as the table structure file has been available before, and so on, so there is no need to do it again. So the speed should be close to the speed of drop table.
3. For delete from table_name: delete all data in the table
For MyISAM, disk space will be released immediately (it should be a special treatment, and it is reasonable)
InnoDB does not free up disk space
4. For conditional deletion of delete from table_name where xxx, neither innodb nor MyISAM will free disk space.
5. Using optimize table table_name after delete operation will release disk space immediately. Whether it's innodb or myisam. So to achieve the purpose of cleaning up the data, ask delete to perform the optimize table operation later.
6. Although the delete from table does not release disk space in the future, it can still be used the next time the data is inserted.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.