Comments on: Optimizing IN() queries against a compound index http://www.xaprb.com/blog/2012/08/22/optimizing-in-queries-against-a-compound-index/ Stay curious! Fri, 10 May 2013 18:25:19 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: sbester http://www.xaprb.com/blog/2012/08/22/optimizing-in-queries-against-a-compound-index/#comment-20183 sbester Thu, 23 Aug 2012 15:31:46 +0000 http://www.xaprb.com/blog/?p=1527#comment-20183 http://bugs.mysql.com/bug.php?id=31188
(Optimizer does not do index range scans using predicates in IN lists)

]]>
By: Fenway http://www.xaprb.com/blog/2012/08/22/optimizing-in-queries-against-a-compound-index/#comment-20182 Fenway Wed, 22 Aug 2012 23:34:03 +0000 http://www.xaprb.com/blog/?p=1527#comment-20182 Haven’t had a chance to install the new version yet … does the same hold true if the query is written as:

select * from tbl1 where col1 in (…) and col2 = 102

I know this is a special case, but I’m just curious.

]]>
By: Igor Babaev http://www.xaprb.com/blog/2012/08/22/optimizing-in-queries-against-a-compound-index/#comment-20181 Igor Babaev Wed, 22 Aug 2012 23:33:21 +0000 http://www.xaprb.com/blog/?p=1527#comment-20181 Baron, Domas

How about joint sponsorship of this optimization by Percona/Facebook? I believe 10K (40 hrs) would be enough.

Regards,
Igor.

]]>
By: Xaprb http://www.xaprb.com/blog/2012/08/22/optimizing-in-queries-against-a-compound-index/#comment-20179 Xaprb Wed, 22 Aug 2012 17:14:40 +0000 http://www.xaprb.com/blog/?p=1527#comment-20179 Yes, this problem is an old favorite. I haven’t tested this on MariaDB. Has MariaDB fixed this yet?

]]>
By: domas http://www.xaprb.com/blog/2012/08/22/optimizing-in-queries-against-a-compound-index/#comment-20178 domas Wed, 22 Aug 2012 16:22:23 +0000 http://www.xaprb.com/blog/?p=1527#comment-20178 I filed a bug on that back in the day (2005? 2006?), it was closed as ‘duplicate’.

]]>