Subject | Re: query join issue |
---|---|
Author | lance8086 |
Post date | 2005-07-15T23:57:09Z |
--- In firebird-support@yahoogroups.com, "Arno Brinkman"
<firebird@a...> wrote:
This is from the IBACCESS plan tab:
PLAN JOIN (S NATURAL,S1 INDEX (PRIMARYKEY_149))
Thanks.
<firebird@a...> wrote:
> Hi,structure.
>
>
> > FB (1.5.2) seems to have a problem with this query join
> > If I run it in MS SQL, it returns about 750 records in just a fewit
> > seconds which is reasonable and expected for the data. If I run
> > against the same data loaded into Firebird, it goes nuts. Testedit
> > init.
> > IBAccess and it kept counting to well over 200K before I canceled
> >The primary key is (groupid,userid).
> > select S1.userid, S1.groupid, S.username
> > from S
> > inner join S S1 on
> > S1.userid=S.userid
> > where S.groupid='004'
>
> is S.groupid also indexed?
> Beside that, show us the PLAN reported by the engine and we cantell more.
This is from the IBACCESS plan tab:
PLAN JOIN (S NATURAL,S1 INDEX (PRIMARYKEY_149))
Thanks.