Home > Database > Mysql Tutorial > MySQL带索引的表,大批量数据导入的性能提升_MySQL

MySQL带索引的表,大批量数据导入的性能提升_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:54:47
Original
1203 people have browsed it

同一个库,有一个表的条件批量插入到另一个库

insert into table select A,B from table1 where *.*;

table1 A,B索引建了有200多万数据,插入40多万数据 用了9秒

请问有没有优化的方法

我给你个建议

1 去掉索引

2 导入数据

3 加上索引

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template