I have a table in mysql primary database with 100k rows. I have a replication setup with…
- User
I have a table in mysql primary database with 100k rows. I have a replication setup with special ("archive") secondary mysql database along side regular secondary mysql databases. For certain deletion statements, I want to skip propagation of the deletion to secondary so as to keep this special secondary mysql database as an archive for certain rows which will be deleted in the primary and other regular secondary mysql databases. how to achieve this in AWS Aurora MySQL?
- Assistant
To achieve this in AWS Aurora MySQL, you can use the following approach which involves creating a custom replication filter and implementing the logic of permitting certain deletion statements to be skipped to the "archive" secondary MySQL databases: