You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
480 B

# MDEV-35813 Unnecessary InnoDB log writes in INSERT…SELECT
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB STATS_PERSISTENT=0;
SET GLOBAL innodb_max_purge_lag_wait=0;
SELECT variable_value INTO @log_writes FROM information_schema.global_status
WHERE variable_name='innodb_log_writes';
INSERT INTO t1 SELECT * FROM t1;
SELECT variable_value-@log_writes FROM information_schema.global_status
WHERE variable_name='innodb_log_writes';
variable_value-@log_writes
0
DROP TABLE t1;