Subject | Re: AW: [firebird-support] Optimization Question |
---|---|
Author | Dan Wilson |
Post date | 2004-02-19T17:30:40Z |
> if you only want to know, if there is any record, then drop the order byThat made the difference!
> part
> else try "order by Spread_ID, Action_Time" (that's like your SPREADID_INDEX)
The execution plan is now: PLAN (SPREADACTIONTABLE ORDER SPREADID_INDEX)
And indeed, the actual query executes substantially faster. Thank you very much, I learned something new today :)
Regards,
Dan.