Re: Slow performance on handler `primary` first
I have the same problem with software migration.
In documentation is written that HANDLER is faster than SELECT statement. This sample data show something opposite.
mysql> HANDLER IMZ OPEN;
Query OK, 0 rows affected (0.00 sec)
mysql> HANDLER IMZ READ tw >= (65884,'2007-12-31') WHERE idtw=65884 AND data<='2009-05-12' LIMIT 100;
...
5 rows in set (0.55 sec)
mysql> HANDLER IMZ CLOSE;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT * FROM IMZ WHERE idtw=65884 AND data BETWEEN '2007-12-31' AND '2009-05-12' LIMIT 100;
...
5 rows in set (0.03 sec)
mysql> SELECT COUNT(*) FROM IMZ;
+----------+
| COUNT(*) |
+----------+
| 529581 |
+----------+
1 row in set (0.00 sec)
Is any solution to make HANDLER queries faster?
Subject
Views
Written By
Posted
3551
March 03, 2009 01:49AM
Re: Slow performance on handler `primary` first
1433
May 12, 2009 07:46AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.