Subject Re: [Firebird-Architect] Bulk loader.
Author Nando Dessena
Martijn,

>> Incidentally, there's a trick for constraints. Execute each constraint
>> at row level. If it passes, fine. Otherwise track the row id. At
>> commit time, re-evaluate the failures and act accordingly. This is
>> probably significantly faster than performing all constraint checks at
>> commit time.

M> Can't this fail for CHECK constraints that include some kind of
M> check on multiple rows or existence of rows?

and for FKs as well, not to mention self-reference for that matter.

That's why you retry the failed ones at the end, as I understand.

Ciao
--
Nando Dessena