SQL: Understanding Change Data Capture for Azure SQL Database - Part 2 - How does it work?
In the part 1 of this series, I discussed the positioning of Change Data Capture. In part 2, I want to cover how it works.
Log Reading
There are many ways that you can output details of changes that occur in data within SQL Server. Many of those methods require actions to occur at the time the data change is made. This can be problematic.
The first problem with this, is the performance impact on the application that’s making the change. If I update a row in a table and there is part of the process that writes details of that change to some type of audit or tracking log, I’ve now increased the work that needs to happen in the context of the application that’s making the change. Generally what this means, is that I’ve slowed the application down by at least doubling the work that needs to be performed. That might not be well-received.
2023-03-06