mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
Use delayed create index for LOAD DATA INFILE, INSERT ... SELECT and CREATE ... SELECT
(Accidently disabled by a recent push)
This commit is contained in:
parent
68b583d88b
commit
c82d6fddb9
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ void ha_myisam::deactivate_non_unique_index(ha_rows rows)
|
|||
we don't want to update the key statistics based of only a few rows.
|
||||
*/
|
||||
if (file->state->records == 0 &&
|
||||
rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT)
|
||||
(!rows || rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT))
|
||||
mi_disable_non_unique_index(file,rows);
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue