Re: Index and Order By

2007-01-15 Thread Brent Baisley
- Original Message - From: "Kelvin Wu" <[EMAIL PROTECTED]> To: Sent: Saturday, January 13, 2007 11:04 PM Subject: Index and Order By I am looking for help and suggestion. Mysql Ver 12.18 Distrib 4.0.12, for pc-linux (i686) The table structure: mysql&

Re: Index and Order By

2007-01-15 Thread Joerg Bruehe
Hi Kelvin, all! Kelvin Wu wrote: I am looking for help and suggestion. Mysql Ver 12.18 Distrib 4.0.12, for pc-linux (i686) The table structure: [[...]] I created multiple parts of Index for this table: [[...]] And here are the questions: Q1: the query is supposed to use index bynone but ...

Re: Index and Order By

2007-01-13 Thread Kelvin Wu
BTW, I have force to use index key by using USE INDEX (bysource) for example, in the query, but it didn't look good to me... -- Sent from my BlackBerry. Ignore the typos unless they're funny.

Index and Order By

2007-01-13 Thread Kelvin Wu
I am looking for help and suggestion. Mysql Ver 12.18 Distrib 4.0.12, for pc-linux (i686) The table structure: mysql> desc article; ++--+--+-+-++ | Field | Type | Null | Key | Default | Extra | +-

Re: Questions on index and 'order by'

2004-06-01 Thread Chambon
Thank you Sasha for your answer.0 I still miss-understand index and 'order by'. After creating multiples index on a 'Test' table, the current problem is that mysql optimizer doesn't choose the right index. Here is a small

Re: Questions on index and 'order by'

2004-05-31 Thread Sasha Pachev
Bernard Chambon wrote: I try to understand index usage for 'order by' but that's seemn hard to me. Here is what I have tried : 1_ About documentation I have read carefully related documentation (7.2.9 How MySQL Optimizes ORDER BY) but I don't understand it. - What is the difference betwween 'ke

Questions on index and 'order by'

2004-05-31 Thread Bernard Chambon
I try to understand index usage for 'order by' but that's seemn hard to me. Here is what I have tried : 1_ About documentation I have read carefully related documentation (7.2.9 How MySQL Optimizes ORDER BY) but I don't understand it. - What is the difference betwween 'key1' and 'key_part1' ?