-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: tip
50 tips to boost MySQL Performance Webinar follow up
Thank you for attending the webinar ! Here are the ppt slides. If you missed it, you can still join the archived event by clicking the URL below. http://w.on24.com/r.htm?e=748845&s=1&k=171F8C0CECD105B0F4ED721CA6F2C704 There were a lot of attendees and a lot of questions. … Continue reading
Posted in conference, tip, Uncategorized
2 Comments
How to calculate a specific InnoDB index size ?
MySQL provides commands to see the overall index size versus the data size. One of them is “show table status” :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
mysql> show table status like 't'\G *************************** 1. row *************************** Name: t Engine: InnoDB Version: 10 Row_format: Compact Rows: 4186170 Avg_row_length: 34 Data_length: 143310848 Max_data_length: 0 Index_length: 146030592 Data_free: 6291456 Auto_increment: NULL Create_time: 2014-02-04 15:40:54 Update_time: NULL Check_time: NULL Collation: latin1_swedish_ci Checksum: NULL Create_options: Comment: 1 row in set (0.00 sec) |
So here, we have these “estimations”, run ANALYZE TABLE before to get more accurate estimates : Data_length: 143310848, … Continue reading
Posted in tip
Leave a comment
A small optimizer change worth noticing
MySQL uses internal temporary tables to execute some queries. Usually the tables are stored in memory and on disk if some conditions are met : Some conditions prevent the use of an in-memory temporary table, in which case the server … Continue reading
Posted in tip
Leave a comment
Poor man’s Online Optimize in 5.6
Table space fragmentation has generally 2 origins : File System fragmentation : the data file is spread physically on many non contiguous locations on the disk. Internal Fragmentation : the data and index pages have “holes” : this happens when … Continue reading
Posted in online DDL, tip
2 Comments