Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: Row and Sta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 11 Topic 8868 of 9520
Post > Topic >>

Re: Row and Statement based Trigger Question

by JohnO <johno1234@[EMAIL PROTECTED] > May 11, 2008 at 01:34 PM

On May 11, 2:36 pm, Serge Rielau <srie...@[EMAIL PROTECTED]
> wrote:
> JohnO wrote:
> > The deletes are only going to be purge/archive operations, rather than
> > business transactions. The first one is going to delete the millions
> > as it will be several years worth. Subsequent ones will be annual so
> > will still be pretty big, but not quite so bad.
>
> If that's the case why don't you use batch process. Triggers are meant
> to to be active database objects. I wouldn't use them for maintenance
tasks.
>

H Serge,

Speed, mostly. This is a JDEdwards OneWorld site, so any batch work
will be written in the OneWorld toolset, and will likely end up bing
millions of individual inserts and deletes. The process would take
many days for some of the files.

It's so much faster to do a bulk delete, and I was hoping the trigger
would optimise out well enough.

The statement based trigger seems to be the most efficient, but with
the problems I pointed otu at the start.

Cheers,
JohnO
 




 11 Posts in Topic:
Row and Statement based Trigger Question
JohnO <johno1234@[EMAI  2008-05-08 16:45:18 
Re: Row and Statement based Trigger Question
JohnO <johno1234@[EMAI  2008-05-08 16:49:31 
Re: Row and Statement based Trigger Question
Serge Rielau <srielau@  2008-05-08 21:04:49 
Re: Row and Statement based Trigger Question
JohnO <johno1234@[EMAI  2008-05-08 18:42:39 
Re: Row and Statement based Trigger Question
"walker.l2" <  2008-05-09 05:13:46 
Re: Row and Statement based Trigger Question
JohnO <johno1234@[EMAI  2008-05-10 15:51:59 
Re: Row and Statement based Trigger Question
Serge Rielau <srielau@  2008-05-10 22:36:42 
Re: Row and Statement based Trigger Question
JohnO <johno1234@[EMAI  2008-05-11 13:34:37 
Re: Row and Statement based Trigger Question
"walker.l2" <  2008-05-12 02:20:20 
Re: Row and Statement based Trigger Question
JohnO <johno1234@[EMAI  2008-05-12 18:33:43 
Re: Row and Statement based Trigger Question
"walker.l2" <  2008-05-14 01:47:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 21:26:16 CST 2008.