Re: Avoiding filesort #2

2005-02-23 Thread Homam S.A.
> bit difficult to understand at first but it is > fast. > > > Remember to fetch 100 > > > to 1000 rows at a time. You don't want to fetch > just > > > 1 row from each call. > > > > > > Mike > > > > > &g

Re: Avoiding filesort #2

2005-02-23 Thread mos
y sure that what the manual > > > says is that MySQL only > > > USES one index per request, not one index per > table. > > > I would try adding an > > > index that starts with ColC (and maybe only > ColC). > > > Your index starts with > > &

Re: Avoiding filesort #2

2005-02-23 Thread Homam S.A.
tty sure that what the manual > > > says is that MySQL only > > > USES one index per request, not one index per > table. > > > I would try adding an > > > index that starts with ColC (and maybe only > ColC). > > > Your index starts with > &

Re: Avoiding filesort #2

2005-02-22 Thread mos
e > MySQL decide to use no > index in some situations. Mike > > > - Original Message ----- > From: "Homam S.A." <[EMAIL PROTECTED]> > To: > Sent: February 22, 2005 8:12 PM > Subject: Avoiding filesort #2 > > > > Actually with the qu

Re: Avoiding filesort #2

2005-02-22 Thread Homam S.A.
nal Message - > From: "Homam S.A." <[EMAIL PROTECTED]> > To: > Sent: February 22, 2005 8:12 PM > Subject: Avoiding filesort #2 > > > > Actually with the query below it does avoid > filesort, > > but once I use anything other than the equal > operat

Re: Avoiding filesort #2

2005-02-22 Thread Mike OK
. This could confuse the index selection process and have MySQL decide to use no index in some situations. Mike - Original Message - From: "Homam S.A." <[EMAIL PROTECTED]> To: Sent: February 22, 2005 8:12 PM Subject: Avoiding filesort #2 > Actually with the query

Re: Avoiding filesort #2

2005-02-22 Thread Mike OK
- Original Message - From: "Homam S.A." <[EMAIL PROTECTED]> To: Sent: February 22, 2005 8:12 PM Subject: Avoiding filesort #2 > Actually with the query below it does avoid filesort, > but once I use anything other than the equal operator > (e.g. ColC > 5),

Avoiding filesort #2

2005-02-22 Thread Homam S.A.
Actually with the query below it does avoid filesort, but once I use anything other than the equal operator (e.g. ColC > 5), it reverts back to filesort. Any thoughts? --- "Homam S.A." <[EMAIL PROTECTED]> wrote: > I read "How My SQL Optimizes Order By" > (http://dev.mysql.com/doc/mysql/en/orde

Avoiding filesort

2005-02-22 Thread Homam S.A.
I read "How My SQL Optimizes Order By" (http://dev.mysql.com/doc/mysql/en/order-by-optimization.html), and I'm aware of its severe limitation due to the one-index-per-table rule. However, even when I follow all the roles, I'm still getting filesort instead of using the index order. So I created a