Re: Optimizing Query to use Index in ORDER BY

2002-10-24 Thread Joseph Koenig
enig '" <[EMAIL PROTECTED]>, "'gerald_clark '" > <[EMAIL PROTECTED]> > Cc: "'[EMAIL PROTECTED] '" <[EMAIL PROTECTED]> > Subject: RE: Optimizing Query to use Index in ORDER BY > > What version of MySQL are you currently ru

RE: Optimizing Query to use Index in ORDER BY

2002-10-23 Thread Victor Pendleton
I am off base with this information. I hope this helps. Victor Pendleton -Original Message- From: Joseph Koenig To: gerald_clark Cc: [EMAIL PROTECTED] Sent: 10/23/02 2:29 PM Subject: Re: Optimizing Query to use Index in ORDER BY The explain shows that it is using the muzeid key for t

Re: Optimizing Query to use Index in ORDER BY

2002-10-23 Thread Joseph Koenig
Wed, 23 Oct 2002 14:00:29 -0500 > To: Joseph Koenig <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: Optimizing Query to use Index in ORDER BY > > Does explain say an index is used on pt for the join? > Only one index per table is used in a query. > It is probably

Re: Optimizing Query to use Index in ORDER BY

2002-10-23 Thread gerald_clark
Does explain say an index is used on pt for the join? Only one index per table is used in a query. It is probably more efficient to use the index for the where clause than the order by. Joseph Koenig wrote: Hi, I'm having trouble getting the following query to use the indexes on the order by.