Subject | Re: [firebird-support] Re: Subqueries and indexes |
---|---|
Author | Milan Babuskov |
Post date | 2006-08-10T16:08:53Z |
yoav112003 wrote:
If you really want it, use JOIN.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
> The performance is about the same as the original query. As in theWith that query you can't. It uses what's in WHERE clause of subselect.
> original query, according to the plan the index on 'ROWID' in table
> 'events' is not used (natural sort is used), and if I try to specify
> it in a custom plan I get the error:
>
> SQL Message : -284
> index cannot be used in the specified plan
>
> How can I force FB to use this index?
If you really want it, use JOIN.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org