Monday, March 30, 2015

Issue with CDC and Replication enabled

Hello,


We have this strange issue with CDC and replication. Let me explain


1. We have a database on write server and we replicate some tables to the read server. There are 15 tables that we replication and 8 of them have computed columns that are persisted.


2. We also have CDC enabled on the same database where we have transactional replication enabled. I know that both CDC and replication uses replication log reader. Some how, all the time we see the log_reuse_wait says replication


3. If I add around 100-200 MB into these tables, with these persisted columns, it will be around 500 MB of data. But the replication is queuing up 10-15 GB of data.


4. I checked CDC tables, and the updates are in cdc tables. Also, I don't see CDC capture job. Is this because there is already replication enabled?


What might be the issue that's causing the log to hold for a very long extended periods of time? We don't see any issue with log reader and CDC.


No comments:

Post a Comment