Reputation: 1
I have an environment for testing purposes with its own database (Microsoft Azure). So every single release, once we deploy a new version to our environment, we restore the database from our backup. And that restore process takes for ages. Do we have any alternatives to full restore? Since we create tons of junk data because of our automated tests, we need to have a 'fresh' database once we moved to a new version. I know that it's a good practice to have some 'tear down' mechanism, but our tests create literally huge amount of data, so we thought that backup/restore is the only one smart way to handle our issue. But since the restore can take, let's say 5-6 hours, we are searching for alternatives.
Upvotes: 0
Views: 65
Reputation: 8422
Restoring a full database for each test deployment can be time-consuming, especially if you are dealing with large amounts of data. to reduce this time, you can follow below approaches:
TRUNCATE TABLE TestTable1;
Upvotes: 0