4 ms·
And if you need to run expensive migrations, use a template database. https://www.postgresql.org/docs/current/manage-ag-templatedbs.html https://www.postgresql
by oauea 6y ago
And if you need to run expensive migrations, use a template database.
https://www.postgresql.org/docs/current/manage-ag-templatedbs.html https://www.postgresql.org/docs/current/manage-ag-templatedb...
- majodev 6y agoWhile PostgreSQL templates allow to scaffold new databases (one per test-spec) quite fast, it's even faster to have a warmed up pool of databases ready: https://github.com/allaboutapps/integresql#background https://github.com/allaboutapps/integresql#background Disclaimer: author.
- oauea 6y agoOh that looks great, and very close to what I had in mind for the next upgrade of our in-house testing framework. Definitely going to give that a try soon. Thanks for posting it!