Hacker News new | past | comments | ask | show | jobs | submit login

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.




That 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)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: