practicalli / clojure-web-services

Develop production grade server-side web services and APIs using Clojure and REPL driven development
https://practical.li/clojure-web-services
Creative Commons Attribution Share Alike 4.0 International
11 stars 14 forks source link

Managing one-time persistent data fixes #91

Open practicalli-johnny opened 3 years ago

practicalli-johnny commented 3 years ago

Hopefully it is rare, but one-time fixes may be required to correct data in what ever is used for persistent storage, e.g. a relational database like postgresql. Data can change as the business and customers change, or our understanding of their needs. Issues can arise where incorrect

Migration on service startup

Focus on schema design changes only when running migration scripts during the startup process of a Clojure application.

Avoid data loading and data fixes, which tend to be one-off issues

focused on changes only to the database design and not the values within the persistent store.

Data loading & data fixes

The application may already have an interface for customers or administrators to fix issues, however, if there is no such interface what are the effective ways to apply changes to the values in the persistent store and how can they be effectively managed?

Options