gandalf wrote:
Please
Code:
show index from poller_item;
to find out, which indexes are defined to your poller_item table
R.
Hi,
here are the output.
mysql> show index from poller_item;
+-------------+------------+---------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+-------------+------------+---------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+
| poller_item | 0 | PRIMARY | 1 | local_data_id | A | NULL | NULL | NULL | | BTREE | |
| poller_item | 0 | PRIMARY | 2 | rrd_name | A | 21798 | NULL | NULL | | BTREE | |
| poller_item | 1 | local_data_id | 1 | local_data_id | A | NULL | NULL | NULL | | BTREE | |
| poller_item | 1 | rrd_next_step | 1 | rrd_next_step | A | NULL | NULL | NULL | | BTREE | |
| poller_item | 1 | action | 1 | action | A | NULL | NULL | NULL | | BTREE | |
+-------------+------------+---------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+
The long runtime is to be observed only under poller.php / spine.
If I run two sql commands by hand, it does not take that long.
thx