3 ms·
In some cases, we aren't in a position to normalize the database due to legacy situations. However, one thing that could be done is to use views (maybe scoped
by ericHosick 5y ago
In some cases, we aren't in a position to normalize the database due to legacy situations.
However, one thing that could be done is to use views (maybe scoped in their own schema) to make the database look normalized (Facade the database). This would help with writing future SQL.
It is then possible to iteratively normalize the underlying tables by pointing legacy code at the normalized views until the denormalized tables are no longer in use. Finally, "convert" the views into tables and drop the denormalized tables.
- Akronymus 5y agoThat is actually basically what we are doing. Except the whole application gets replaced too. (I have to write the sync code from the new system to the old one)