Datastage commit per 1000 rows icw materialized views

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
rverharen
Premium Member
Premium Member
Posts: 34
Joined: Fri Jan 19, 2007 9:09 am
Location: Breda, The Netherlands

Datastage commit per 1000 rows icw materialized views

Post by rverharen »

I am about to use materialized views in Oracle. A property is to refresh the view when a commit is given on the master table of the view (or on demand). If i have a datastage job which gives a commit after each 1000 rows on this master table, is this going to give me problems with the view?
If so i have to make a job which uses the command to refresh the view manually.
At the moment i am working on a impact analysis for a request so i hope someone already knows what will happen.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If your MV is set to refresh on every commit, then don't issue intermediate commits. Leave the Transaction Size at its default of zero, which means only commit once at the end.

Doesn't sound like making it a 'manual' step is an option for you. You must commit the changes in your job which will then force a refresh.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rverharen
Premium Member
Premium Member
Posts: 34
Joined: Fri Jan 19, 2007 9:09 am
Location: Breda, The Netherlands

Post by rverharen »

chulett wrote:If your MV is set to refresh on every commit, then don't issue intermediate commits. Leave the Transaction Size at its default of zero, which means only commit once at the end.

Doesn't sound like making it a 'manual' step is an option for you. You must commit the changes in your job which will then force a refresh.
Hi Graig,
Transaction size can't be set to 0 because that will really cause the performance to decrease because of the large recordsize (and an collapsing rollback segment which can't be extended).
At the moment I define which sort of MV i make (fast on demand or fast on commit).
Because fast on commit is no option because of the many commits in the job it has to be fast on demand.
So the manual step (fast on demand) is the best option.
Thainks for your answer Graig, it helped me getting to the best solution.
Post Reply