Subject | Re: How can I force the use of an index in FB2.0 |
---|---|
Author | lacakus |
Post date | 2006-12-01T06:35:13Z |
> However in FB.2.0.0.0 the same delete SQLI am not sure, but try rewrite delete statement :
>
> DELETE FROM TICKETITEMS WHERE TICKET_UNIQUENUM
> NOT IN (SELECT TICKET_UNIQUENUM FROM TICKETS);
>
> execution takes forever, since it selects
>
> PLAN (TICKETS NATURAL)
> PLAN (TICKETITEMS NATURAL)
>
DELETE FROM TICKETITEMS WHERE not exixts(
select * from TICKETS where
TICKET_UNIQUENUM=TICKETITEMS.TICKET_UNIQUENUM );
-Laco.