Jump to content

Slow Insert


The Little Guy

Recommended Posts

I have 2 indexes on the table and ~130 row in it.

+---------------+------------------+------+-----+-------------------+----------------+
| Field         | Type             | Null | Key | Default           | Extra          |
+---------------+------------------+------+-----+-------------------+----------------+
| search_id     | int(10) unsigned | NO   | PRI | NULL              | auto_increment |
| domain_id     | int(10) unsigned | NO   | MUL | NULL              |                |
| ip            | int(10) unsigned | YES  |     | NULL              |                |
| search_string | char(50)         | NO   |     | NULL              |                |
| search_date   | timestamp        | NO   |     | CURRENT_TIMESTAMP |                |
+---------------+------------------+------+-----+-------------------+----------------+

 

+----------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table    | Non_unique | Key_name  | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+----------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| searches |          0 | PRIMARY   |            1 | search_id   | A         |         134 |     NULL | NULL   |      | BTREE      |         |               |
| searches |          1 | domain_id |            1 | domain_id   | A         |           2 |     NULL | NULL   |      | BTREE      |         |               |
+----------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+

Link to comment
https://forums.phpfreaks.com/topic/251520-slow-insert/#findComment-1290029
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.