Carve Specialized Data Model Out of Monolithic Table
Type: Database refactoring
A special case of Split Table
As one step of Carve Out Bounded Context (out of Monolith) you’ve found a monolithic data model. (Often used to store a monolithic domain model.) In this data model you have identified a table that has become too big. The decision has been made to separate the parts for the newly extracted bounded context.
- Create an empty new table in the database scheme of the carved-out context
- * REfe*
- Copy to-be-moved columns from old to new table => Move Column
- Copy to-be-moved triggers