Check the query plan

EXPLAIN SELECT Field1,Field2,Field3,Field4,Field5,Field6,Field7  FROM
MyTable WHERE
Field7=15 AND Field2=0 AND (Field3 LIKE '%John%' OR Field4 LIKE '%John%' OR
Field5 LIKE '%John') ORDER BY Field6 LIMIT 0,20;

Mikhail.


----- Original Message -----
From: "David Bordas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 1:34 PM
Subject: Re: Slow select query, need some clues to speed it up please ...


> ME> As first step, try to optimize table with help of
> ME> OPTIMIZE TABLE MyTable
> ME> command.
> ME> Any progress?
>
> Already done something like optimize :
> myisamchk -v -a -S --sort-records=1 ../data/jeuxvideo/MyTable
>
>  David
>
> sql,query
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to