From 8ab952ebfec242a1b4b9d8e2426d7702830f199d Mon Sep 17 00:00:00 2001 From: Junv Zhao Date: Mon, 27 Jan 2020 08:11:42 +1100 Subject: [PATCH] data migration --- categories/software-design.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/categories/software-design.md b/categories/software-design.md index f10c263..9bc20c4 100644 --- a/categories/software-design.md +++ b/categories/software-design.md @@ -95,6 +95,17 @@ In his book "Object Oriented Software Construction," Betrand Meyer introduced th - [https://github.com/iluwatar/java-design-patterns](https://github.com/iluwatar/java-design-patterns) +# How to do Data Migration + +1. Add logic to support both new and old data structures + +2. Add Logic should read both old and new data but only write data to new schema/structure + +2. Then migrate the old data schema to new one + +3. Last, delete the logic which handle the old data schema. + + # Some tips - concurrency vs parallelism