MYISAM, INNODB, FALCON simple comparison of speed

Insert 500,000 data simple comparison of the time. The same song three tables, song2, song3 field.

MySQL> desc Song \ G
*************************** 1. Row ************** *************
  Field,: ID
   the Type: int (. 11)
   Null: NO
    Key: the PRI
the Default: NULL
  Extra: AUTO_INCREMENT
**************** 2. Row *************************** ***********
  Field,: name
   the Type: text
   Null: NO
    Key:
the Default:
  Extra:
*************************** 3. Row ************** *************
  Field,: datetime
   the Type: timestamp
   Null: NO
    Key:
the Default: CURRENT_TIMESTAMP
  Extra:
************************************************************ ****** 4. row ***************************
  Field: rank
   Type: int(11)
   Null: NO
    Key:
Default:
  Extra:
4 rows in set (0.00 sec)

mysql>


Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 6.0.0-alpha-community-nt-debug MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> call sp_insert_mod(500000);
Query OK, 0 rows affected ( 1 min 7.27 sec)

mysql> call sp_insert_mod2(500000);
Query OK, 0 rows affected ( 1 min 19.81 sec)

mysql> call sp_insert_mod3(500000);
Query OK, 0 rows affected ( 1 min 33.17 sec)

mysql> select count(*) from song;
+----------+
| count(*) |
+----------+
|   500000 |
+----------+
1 row in set ( 0.02 sec)

mysql> select count(*) from song2;
+----------+
| count(*) |
+----------+
|   500000 |
+----------+
1 row in set ( 0.92 sec)

mysql> select count(*) from song3;
+----------+
| count(*) |
+----------+
|   500000 |
+----------+
Row in the SET 1 ( 2.61 sec )

MySQL> Exit
Bye
course, you can use MRG_MYISAM engine to increase the speed for MyISAM tables,
use of INNODB PARTITION table to increase the speed.

This article comes from " God, let there or be square! " Blog, reproduced please contact the author!

Reproduced in: https: //my.oschina.net/u/585111/blog/219474

Guess you like

Origin blog.csdn.net/weixin_33734785/article/details/92008338