Returns are one of the most common problems faced by retailers. Returns management software can …
Cloud-native POS platform for seamless omnichannel customer experience.
A single hub for all promotions campaigns.
The most advanced synchronization solution for databases and file systems.
Data configuration and batch automation across different disparate systems and vendors.
Does your database retain all your historical data as well as operational data that is needed day to day? If so, why not move the historical data to a new storage space designed for better analytics and reporting while continuing to keep your operational database lean and fast?
This article will walk you through a solution using real-time change data capture to continuously stream all inserts and updates to a data warehouse while ignoring deletes. This allows the operational database to be purged down to only contain the data that is needed for daily operations. All historical data is compiled over time through replication to the warehouse so it is never lost. By separating the operational and historical data all reporting and analytics can work against the warehouse rather than providing more processing by the operational database.
– SymmetricDS is installed and connected to both the operational database and warehouse database
– All tables to be replicated to the warehouse have been configured in SymmetricDS
– Purge processes are in place to remove data from the operational database outside of SymmetricDS to reduce it in size regularly
In order to set up SymmetricDS to replicate only inserts and updates to the warehouse node, the deletes simply need to be configured to be turned off. By navigating to the configure -> table triggers screen, all table trigger configurations used to replicate to the warehouse can be selected in bulk.
Once all the table triggers are selected, hit the “Edit” button to make adjustments to all these configured triggers at the same time. On the bulk edit screen, the “Sync on Delete” checkbox needs to be turned off so that deletes are no longer replicated to the warehouse and all historical data can be retained. Once unchecked, hit “Save” and you are configured to no longer send deletes to the warehouse node.
After saving these changes the triggers will automatically be reconstructed and you are set to send only inserts and deletes to your warehouse. The foundation is now in place to begin purging old data out of your operational database without fear of losing it. Instead, all data is now retained in a warehouse designed for large data sets to be accessed through various reporting and analytics tools.
Josh has worked in the IT industry for over 20 years as a developer, tech lead, and sales engineer. He has worked across a variety of businesses including retail, telecommunications, education, and healthcare. When he is not developing he enjoys whatever sporting event might be taking place.