Re: mysql eluding query debugging?

2007-11-10 Thread Jeremy Cole
Hi Moritz, Thus, my questions: - what's wrong with that query? I know they are big tables, but according to EXPLAIN, this should be fast enough, because mysql's seeing the indexes just fine. As others have said, likely nothing wrong with the query per se. It just sounds like you're hitting

Re: mysql eluding query debugging?

2007-11-10 Thread Brent Baisley
olumns can be referenced via UNIQUE indexes OR using a concatened index on item_id and type_id will go a long way to speed up the query Viel Gluck/ Martin - Original Message - From: "Moritz von Schweinitz" <[EMAIL PROTECTED]> To: Sent: Friday, November 09, 2007 1:16 PM Subj

Re: mysql eluding query debugging?

2007-11-09 Thread Moritz von Schweinitz
ing a concatened index on item_id and type_id will go a long way to speed up the query Viel Gluck/ Martin - Original Message - From: "Moritz von Schweinitz" <[EMAIL PROTECTED]> To: Sent: Friday, November 09, 2007 1:16 PM Subject: mysql eluding query debugging? Ok, i don&

Re: mysql eluding query debugging?

2007-11-09 Thread Dan Nelson
In the last episode (Nov 09), Moritz von Schweinitz said: > Ok, i don't get it. > > I have the following query: > SELECT > SUM(quant) > FROM > movement_items > LEFT OUTER JOIN movements ON movements.id = movement_items.movement_id > WHERE > item_id = 21311 > AND > movements.type_id = 1 > > where

mysql eluding query debugging?

2007-11-09 Thread Moritz von Schweinitz
Ok, i don't get it. I have the following query: SELECT SUM(quant) FROM movement_items LEFT OUTER JOIN movements ON movements.id = movement_items.movement_id WHERE item_id = 21311 AND movements.type_id = 1 where 'movement_items' has about 1.3M rows, and 'movements' about 0.5M rows. EXPLAIN gives

Re: Query debugging

2003-07-18 Thread Victoria Reznichenko
"Colt Brunton" <[EMAIL PROTECTED]> wrote: > I am trying to adapt a query, (kindly) given by Rudy and I can't seem to > debug it. > > Here is the query: > CREATE TABLE Contact >(SELECT >ContactNo, >W

RE: Query debugging

2003-07-18 Thread Colt Brunton
Sorry Rudy Still no luck Can't seem to figure out what's wrong. CREATE TABLE Contact SELECT ContactNo, Work_Address, Field20,

RE: Query debugging

2003-07-18 Thread Rudy Metzger
Sorry, MySQL does not like the ( ). Try it without them :) Cheers /rudy -Original Message- From: Colt Brunton [mailto:[EMAIL PROTECTED] Sent: vrijdag 18 juli 2003 15:38 To: [EMAIL PROTECTED] Subject: Query debugging Hi all I am trying to adapt a query, (kindly) given by Rudy and I

Query debugging

2003-07-18 Thread Colt Brunton
Hi all I am trying to adapt a query, (kindly) given by Rudy and I can't seem to debug it. Here is the query: CREATE TABLE Contact (SELECT ContactNo, Work_Address,