We faced with a problem:
When we are generating accounts (or other documents), we use customer (employee) data. However, customers can change their data (e.g. woman get married and her last name changed, or she moved to live in other country and her address changed).
We need, that after editing woman last name, accounts remain with old last name until specific date,and after that specific date, use woman new last name.
e.g. We have a woman: Emily Smith. She married 2014 December 15, and her last name become Brown. Before: December 15 we generate her account with Smith last name but after December 15 we need to generate her account with Brown last name. So in database we need to save both her last names.
How to save entry optimized with only one or a few changed attributes?
P.S. We also need to save the date when the change was made in order to know which last name to use, old or new.