Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do a lazy migration--aka, every document gets tagged with current version. The restoration/model routines have a transparent upgrade chain (1->2, 2->3) that move any loaded document up the chain until they reach the current version; then, the app code acts as though all documents are magically updated. If you're worried about performance, have the upgrade chain write out the latest version so it's only upgraded once.

Works like a charm. No migration headaches.



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

Search: