Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Basically, you are doing an <code>OPTIMIZE</code> on the table. For InnoDB tables, <code>OPTIMIZE</code> is mapped to <code>ALTER TABLE</code>. Quoting from the Mysql manual : </p> <blockquote> <p>For InnoDB tables, OPTIMIZE TABLE is mapped to ALTER TABLE, which rebuilds the table to update index statistics and free unused space in the clustered index. </p> </blockquote> <p>When deleting 1/2 a table, an <code>OPTIMIZE</code> after is a really good idea.</p> <p>I would make a suggestion for improving performance. Seeing that you support in your configuration the new file format <code>BARRACUDA</code> you should use it. Enabling it is really easy, just add in your <code>my.cnf</code> : </p> <pre><code>innodb_file​_format=Barracuda </code></pre> <p>Restart the server and then alter your table to use the new available <code>ROW_FORMAT = COMPRESSED</code> : </p> <pre><code>ALTER TABLE x ROW_FORMAT=COMPRESSED; </code></pre> <p>From personal experience, when using the compressed row format, table size has reduced to half and it a significant positive impact on performance as well. </p> <p>For more details try going throug : </p> <p><a href="http://dev.mysql.com/doc/refman/5.5/en/innodb-compression-usage.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.5/en/innodb-compression-usage.html</a></p> <p><a href="http://www.mysqlperformanceblog.com/2008/04/23/testing-innodb-barracuda-format-with-compression/" rel="nofollow">http://www.mysqlperformanceblog.com/2008/04/23/testing-innodb-barracuda-format-with-compression/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload