Rafal Jank writes:
> hi,
> since analyze table doesn't work for Innodb tables, where does optimizer get
> statistics needed for making proper query plan from?
> For example, how does it know which index is more selective or in which order
> tables should be joined?
> -- 
> _/        _/  _/_/_/  -----     Rafał Jank [EMAIL PROTECTED]     -----
>  _/  _/  _/  _/   _/         Wirtualna Polska SA   http://www.wp.pl 
>   _/_/_/_/  _/_/_/    ul. Uphagena 2, 80-237 Gdansk, tel/fax. (58) 5215625
>    _/  _/  _/         --------==*  http://szukaj.wp.pl *==----------
> 

InnoDB indices provide all info required, plus they are rather well
balanced. 

ANALYZE TABLE does not provide info for optimizer, it just stores key
distribution for the table.

-- 
Regards,
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
       <___/   www.mysql.com

---------------------------------------------------------------------
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