- 论坛徽章:
- 0
|
本帖最后由 cenalulu 于 2012-10-09 12:49 编辑
当表记录数少时,速度还可以,但当记录数达到3千万条时,速度很慢
mysql> show table status;
+------------+--------+---------+------------+----------+
| Name | Engine | Version | Row_format | Rows |
+------------+--------+---------+------------+----------+
| person | MyISAM | 10 | Dynamic | 33780743 |
+------------+--------+---------+------------+----------+
mysql> load data infile 'xxx'
-> replace into table person;
Query OK, 8325316 rows affected (1 day 20 hours 7 min 23.22 sec)
Records: 7718735 Deleted: 606581 Skipped: 0 Warnings: 0
有快的方法吗? |
|