MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Victoria Reznichenko Date:October 12 2002 1:01pm
Subject:re: query going crazy.
View as plain text  
Norris,
Saturday, October 12, 2002, 2:11:36 AM, you wrote:

NJ> I have the following query:

NJ> select phones.*, ops.plid, ops.box, ops.mac 
NJ> from phones, ops where 
NJ> (ops.box = 'Mcds') or (ops.box = 'Mn3300') and 
NJ> (phones.suffix1 = ops.phone) order by ops.mac


NJ> When I change the order by to a field in the phones table - sorts just fine
NJ> and produces results but in this case I am sorting by one of the fields in
NJ> the other table (ops).
NJ> massive bunch of disk activity and mysqladmin shows that the process is
NJ> writing stuff to disk then sorting then producing the results.

What is the output of EXPLAIN SELECT?


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   Victoria.Reznichenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




Thread
query going crazy.Joseph Norris12 Oct
  • re: query going crazy.Victoria Reznichenko12 Oct