Subject | Re: [firebird-support] Re: Better plan for delete statement |
---|---|
Author | Daniel Rail |
Post date | 2004-10-05T11:21:48Z |
Hi,
At October 5, 2004, 05:18, Christian Kaufmann wrote:
clause to the one that I proposed. If this is a kind of delete
statement that you would be executing on a regular basis(even once a
month), creating a Stored Procedure(as Martjin suggested) will give
you the best performance.
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)
At October 5, 2004, 05:18, Christian Kaufmann wrote:
>>Try this:True, I forgot that the optimizer will change your initial WHERE
>>delete from A
>> where exist(select 1 from B
>> where (TYP = 3) and (PARENTID = 51) and
>> (B.AID=A.AID))
> no change here. The same plan is used:
> PLAN (B INDEX (IX_B_TYP)) PLAN (A NATURAL)
clause to the one that I proposed. If this is a kind of delete
statement that you would be executing on a regular basis(even once a
month), creating a Stored Procedure(as Martjin suggested) will give
you the best performance.
>>statement that you are trying, but it would most likely require someDon't worry, it's been 10 years since I've really programmed with C++.
>>changes in Firebird's engine.
> Well, that's to much for me, since as Delphi programmer I don't have a
> good "relationship" with C++...
--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)