Re: Order by does not use an index when it should.

2003-01-10 Thread harm
On Tue, Jan 07, 2003 at 12:31:36PM +0100, harm wrote: Anybody else who has any idea why the index are not used as they should? I've got same things with 3.23.xx and select query through a TCP/IP connection. I don't know why, but you can solve this issue using the USE INDEX syntax for

Re: Re: Order by does not use an index when it should.

2003-01-07 Thread harm
On Sat, Jan 04, 2003 at 03:25:00PM +0200, Victoria Reznichenko wrote: On Saturday 04 January 2003 14:53, harm wrote: Your order by will not use your weg_2 index because, as you stated, weg_2 index is on (col1, col2, col3, nr) as a group so it wont be used for the individual columns as

Re: Re: Order by does not use an index when it should.

2003-01-07 Thread David Bordas
Anybody else who has any idea why the index are not used as they should? I've got same things with 3.23.xx and select query through a TCP/IP connection. I don't know why, but you can solve this issue using the USE INDEX syntax for select queries ... http://www.mysql.com/doc/en/SELECT.html

Re: Re: Order by does not use an index when it should.

2003-01-07 Thread harm
On Tue, Jan 07, 2003 at 11:49:05AM +0100, David Bordas wrote: Anybody else who has any idea why the index are not used as they should? I've got same things with 3.23.xx and select query through a TCP/IP connection. I don't know why, but you can solve this issue using the USE INDEX syntax

Re: Order by does not use an index when it should.

2003-01-04 Thread harm
On Fri, Jan 03, 2003 at 08:24:17PM -0500, Brian Lindner wrote: harm, Your order by will not use your weg_2 index because, as you stated, weg_2 index is on (col1, col2, col3, nr) as a group so it wont be used for the individual columns as you need try to create a separate index on just the

re: Re: Order by does not use an index when it should.

2003-01-04 Thread Victoria Reznichenko
On Saturday 04 January 2003 14:53, harm wrote: Your order by will not use your weg_2 index because, as you stated, weg_2 index is on (col1, col2, col3, nr) as a group so it wont be used for the individual columns as you need try to create a separate index on just the nr column, that

Re: Re: Order by does not use an index when it should.

2003-01-04 Thread harm
On Sat, Jan 04, 2003 at 03:25:00PM +0200, Victoria Reznichenko wrote: On Saturday 04 January 2003 14:53, harm wrote: Your order by will not use your weg_2 index because, as you stated, weg_2 index is on (col1, col2, col3, nr) as a group so it wont be used for the individual columns as

Re: Order by does not use an index when it should.

2003-01-03 Thread Brian Lindner
harm, Your order by will not use your weg_2 index because, as you stated, weg_2 index is on (col1, col2, col3, nr) as a group so it wont be used for the individual columns as you need try to create a separate index on just the nr column, that should be used by the orderby clause. This way your