Re: DESC index column

2008-05-21 Thread Rob Wultsch
On Tue, May 20, 2008 at 11:20 AM, Bof <[EMAIL PROTECTED]> wrote: > Hi all - > Is there a good workaround for mysql's lack of 'DESC' > functionality when creating an index? > > I'm looking at migrating an Oracle RAC database to > mysql (InnoDB or Cluster - testing both at the > moment), and the Orac

Re: DESC index column

2008-05-21 Thread Phil
yes, you'd have to alter the queries to use the new index. As I say it's very application dependent and does not always apply, but you can normally shoehorn any application to use it. Phil On Wed, May 21, 2008 at 9:22 AM, Bof <[EMAIL PROTECTED]> wrote: > Hi Phil - > > Thanks for the suggestion.

Re: DESC index column

2008-05-21 Thread Bof
Hi Phil - Thanks for the suggestion. Might that involve possibly changing queries in the web application hitting the database so that it uses the new column, or would the indexing on the new column take care of speeding up the existing queries? cheers Iain -- --- Phil <[EMAIL PROTECTED]> wrote:

Re: DESC index column

2008-05-21 Thread Phil
What I've done in the past is to create extra columns which contain the reverse of a number/date used previously in an index. So, for instance if it's a simple INT column (A) and you know the max would be 999 for example, create an extra column and populate that with (1000 - A) and use it

DESC index column

2008-05-21 Thread Bof
Hi all - Is there a good workaround for mysql's lack of 'DESC' functionality when creating an index? I'm looking at migrating an Oracle RAC database to mysql (InnoDB or Cluster - testing both at the moment), and the Oracle database uses a lot of multi-column indexes with some colums indexed in d