List:Internals« Previous MessageNext Message »
From:André Næss Date:October 21 2001 2:03pm
Subject:WHERE ... IN (...)
View as plain text  
Hi

I'm not sure if this is the right group, but I can't think of any group more
competent to answer this question: How is the WHERE ... IN (...)
implemented? If I have for example: WHERE id IN(1,6,3,82,45), how does MySQL
do the checking? Does it sort the set and keep it in memory while checking,
or will it search through it every time? What is the optimal way to use the
IN()?

Regards
André Næss

Thread
WHERE ... IN (...)André Næss21 Oct
  • Re: WHERE ... IN (...)Sinisa Milivojevic22 Oct
    • Re: WHERE ... IN (...)Michael Widenius29 Oct