dbTalk Databases Forums  

DB2 V7 Replication performance

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss DB2 V7 Replication performance in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gert van der Kooij
 
Posts: n/a

Default DB2 V7 Replication performance - 10-17-2003 , 03:11 PM







Hi,

We are replicating over 200 tables from each production 'server' (13
at the moment, about 140 when all are configured) and noticed a
large amount of additional IO's after activating replication.

I thought that the apply might be the one causing this but after
capturing the SQL statements it looks like the capture process is
causing those IO's.

Within 15 minutes the ASN.IBMSNAP_REGISTER table was read about
100000 times. When examining these sections it looks like the table
doesn't have the right indexes. Almost all sections within the
ASNNN706 package which do read the register table need to read all
the rows from the table.

The following SQL statements from the ASNNN706 package are causing
almost all IO's against the register table:

-------------------------------------------------
Section = 22
SQL Statement:
UPDATE ASN.IBMSNAP_REGISTER SET CD_NEW_SYNCHPOINT = :H00116 :H00031
WHERE PHYS_CHANGE_OWNER = :H00152 AND PHYS_CHANGE_TABLE = :H00153

Section = 156
SQL Statement:
UPDATE ASN.IBMSNAP_REGISTER SET SYNCHPOINT = :H00123 :H00155 ,
SYNCHTIME = :H00181 :H00155
WHERE GLOBAL_RECORD = 'Y'

Section = 166
SQL Statement:
SELECT MIN(SYNCHPOINT) INTO :H00116 :H00031
FROM ASN.IBMSNAP_PRUNCNTL A
WHERE A.SOURCE_OWNER CONCAT(A.SOURCE_TABLE) IN
(SELECT B.SOURCE_OWNER CONCAT(B.SOURCE_TABLE)
FROM ASN.IBMSNAP_REGISTER B
WHERE PHYS_CHANGE_TABLE = :H00153 AND PHYS_CHANGE_OWNER =
:H00152 ) AND A.SYNCHPOINT IS NOT NULL AND A.SYNCHPOINT
Quote:
X'00000000000000000000'
------------------------------------------------

Section 166 was executed over 400 times within 15 minutes so the
solution could be to add an additional index with at least the
PHYS_CHANGE_OWNER and PHYS_CHANGE_TABLE columns (SOURCE_OWNER and
SOURCE_TABLE are both in the unique index already), the section 22
update would also use this index.

Has anybody done this before? Could this 'solution' be the cause of
other problems (too much locking, deadlocks)?
Do I need to add other indexes to the replication tables?

I hope somebody can help with this problem.

TIA.

Kind regards, Gert

Ps. don't reply be email, it's a fake address (if email is the only
option use google to find my real email address


Reply With Quote
  #2  
Old   
Gert van der Kooij
 
Posts: n/a

Default Re: DB2 V7 Replication performance - 10-21-2003 , 01:08 PM






In article <MPG.19fa6b63f93a61bd98968f (AT) news (DOT) xs4all.nl>,
gert (AT) invalid (DOT) nl says...

Quote:
Section 166 was executed over 400 times within 15 minutes so the
solution could be to add an additional index with at least the
PHYS_CHANGE_OWNER and PHYS_CHANGE_TABLE columns (SOURCE_OWNER and
SOURCE_TABLE are both in the unique index already), the section 22
update would also use this index.

Has anybody done this before? Could this 'solution' be the cause of
other problems (too much locking, deadlocks)?
Do I need to add other indexes to the replication tables?


Hi,

It would be great if somebody from the DB2 lab could assist with this
problem and advice on how to continue. We are evaluating the
replication pilot and would like to continue with the the other
servers within the next few weeks.

Kind regards, Gert


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.