> I have all the scrips to create a database. I have a few questions:
>
[quoted text clipped - 25 lines]
>
> Thank you
>> I have all the scrips to create a database. I have a few questions:
>>
[quoted text clipped - 46 lines]
> 7- Procedures
> 8- Insert the data
PMFJI, two questions:
1. Is the data known to be valid before loading?
2. Does the db2 tool check constraints while loading?
If answer to both is yes, the sequence in the OP will be much faster than
the sequence above. The sequence above causes indexes to be built as the
data loads and constraints to be checked for data that is known to be good.
The OP's sequence gets the data in and then performs those actions in
single discreet shots.
I am curious because we have always loaded data first using other tools on
other platforms, does db2's tool offer some advantage here?

Signature
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec)ure(Dat)a(.com)
Mark A - 31 Mar 2005 15:37 GMT
> PMFJI, two questions:
>
[quoted text clipped - 9 lines]
> I am curious because we have always loaded data first using other tools on
> other platforms, does db2's tool offer some advantage here?
If you have a large data warehouse, adding the indexes afterward probably
would be a lot faster. But it partly depends on whether the SP's, functions,
and triggers need any of indexes to perform well. Some of these could be
invoked during the insert.
I would never assume that the data is 100% valid or that all constraints,
triggers, etc were accurately converted. Doing the inserts last would be a
little easier to pinpoint which rows had errors.
A reorg and runstants is in order after the final step.