Subject | »Ø¸´£º [firebird-support] Re: About update clause's time. |
---|---|
Author | Adam |
Post date | 2005-08-21T23:58:53Z |
> > Hmm, using 'where Bfield > Bvalue' means that the primary keycannot
> > be used in the plan. Possibly a descending index could be used (Ithe
> > don't know how much Arno has improved this bit since 1.0), but
> > primary key creates an ascending index, so without the descendingat
> > index the query has to go natural...
>
> Are you sure Set? Definitely an ascending index does not help for a
> select max query so FB does not use it in that case, but I think it
> does use it for < and > operations (unfortunately I can not test it
> this moment). Unless this is new in FB 1.5 and did not exist in 1.x?OK a quick test in FB 1.5 confirms my suspicion that an ascending
index can be used in a > query. It makes sense if you think about it.
UPDATE EMPLOYEE SET DOB = '1/1/1950' WHERE ID > 500
gives PLAN (EMPLOYEE INDEX (PK_EMPLOYEE))
> Unfortunately I do notBut I do now ;)
> have access to my work machine at the moment where I have linked a
> good post from Helen on how MGA works.
http://groups.yahoo.com/group/firebird-support/message/59165
My previous post contains the sort of information I would be looking
for in tracking this down.
Adam