You can analyze a table to update its statistics as follows:
--------------
create table andrews_table like
information_schema.PROCESSLIST
--------------
Query OK, 0 rows affected (0.01 sec)
--------------
insert into andrews_table select * from
information_schema.PROCESSLIST
--------------
Query OK, 12 rows affected (0.00 sec)
Records: 12 Duplicates: 0 Warnings: 0
--------------
analyze table andrews_table
--------------
+--------------------+---------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+--------------------+---------+----------+----------+
| test.andrews_table | analyze | status | OK |
+--------------------+---------+----------+----------+
1 row in set (0.00 sec)
No comments:
Post a Comment