Re: Innodb full table scan if query return 0 rows
Posted by:
Rick James
Date: August 25, 2016 07:37PM
I don't think partitioning provides any performance, at least not for this type of query.
Please try these (for the slow case), to see which may or may not run slow:
SELECT id FROM table WHERE created BETWEEN (date1) AND (date2) AND plug = (n);
SELECT * FROM table WHERE created BETWEEN (date1) AND (date2) AND plug = (n) LIMIT 10;
Consider filing a bug at bugs.mysql.com . If you do, please post the link to the bug in this thread.
Subject
Views
Written By
Posted
2288
August 20, 2016 03:59AM
1149
August 20, 2016 09:27AM
1187
August 21, 2016 09:40PM
1079
August 24, 2016 10:58AM
1100
August 24, 2016 05:32PM
1059
August 25, 2016 01:31AM
Re: Innodb full table scan if query return 0 rows
1113
August 25, 2016 07:37PM
1173
August 27, 2016 04:31AM
1164
August 27, 2016 01:39PM
1228
August 29, 2016 03:27AM
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.