Subject | Re: [firebird-support] Re: How to mix ascending and descending fields in one index |
---|---|
Author | Martijn Tonies |
Post date | 2009-10-07T13:48:55Z |
> I want to improve the performance ofDon't depend on indices for sorting, depend on indices for filtering.
>
> select * from foo order by a asc, b desc
>
>
>
> If I create 2 indexs, the plan is "natural" and the indexs are not used.
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com