Duplicatione Notitia is a devious devil that possesses many ORMs.
Symptoms
- When you Update/Insert a table, another table related to the first one is duplicated in the database
Rituals
- First you need to detect Duplicatione Notitia by creating a unit test
- Say the words: In the name of unit tests, get out
- Repeat until you see the tests to fail, i.e. successfully detect Duplicatione Notitia, the devious devil of ORMs
- Add a check, if the data already exists, skip re-inserting of the existing data
- See the Tests to pass, continuously chanting
- Thank for the Lord of Test Automation for saving the system
See also