According to the documentation , RoundhousE has 3 modes:
- Normal
- DropCreate
- Restoreun
The first 2 are clear, but I don't understand RestoreRun Mode and the benefits it offers in Production:
Once you switch to production, you switch from DropCreate to RestoreRun if your database is small enough. . If not, you can continue the idea of a service mode by switching to a new script name that you are making changes to. You can also back up the structure only (and some search data if you use a tool like LiteSpeed) and restore from that.
I had the impression that RestoreRun would restore the database backup before running the migration scripts. If so, I could see that it is useful in development, where I repeatedly test my new scripts, but I don’t see the purpose for creating it.
Here are my questions:
- Do I really not understand the purpose of RestoreRun?
- What is a sample use case of RestoreRun for a production deployment?
- Are there any other differences than starting db recovery between RestoreRun and Normal?
Any understanding of this would be greatly appreciated.
source
share