Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Did you try the <strong><em>Bulk Data Loading Tips</em></strong> from the <a href="https://dev.mysql.com/doc/refman/5.7/en/optimizing-innodb-bulk-data-loading.html" rel="noreferrer">InnoDB Performance Tuning Tips</a> (especially the first one):</p> <blockquote> <ul> <li><p>When importing data into <code>InnoDB</code>, make sure that MySQL does not have autocommit mode enabled because that requires a log flush to disk for every insert. To disable autocommit during your import operation, surround it with <code>SET autocommit</code> and <code>COMMIT</code> statements:</p> <pre><code>SET autocommit=0; ... SQL import statements ... COMMIT; </code></pre> <p>If you use the mysqldump option <code>--opt</code>, you get dump files that are fast to import into an <code>InnoDB</code> table, even without wrapping them with the <code>SET autocommit</code> and <code>COMMIT</code> statements.</p></li> <li><p>If you have <code>UNIQUE</code> constraints on secondary keys, you can speed up table imports by temporarily turning off the uniqueness checks during the import session:</p> <pre><code>SET unique_checks=0; ... SQL import statements ... SET unique_checks=1; </code></pre> <p>For big tables, this saves a lot of disk I/O because <code>InnoDB</code> can use its insert buffer to write secondary index records in a batch. Be certain that the data contains no duplicate keys.</p></li> <li><p>If you have <code>FOREIGN KEY</code> constraints in your tables, you can speed up table imports by turning the foreign key checks off for the duration of the import session:</p> <pre><code>SET foreign_key_checks=0; ... SQL import statements ... SET foreign_key_checks=1; </code></pre> <p>For big tables, this can save a lot of disk I/O.</p></li> </ul> </blockquote> <p>IMO, the whole chapter is worth the read.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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