oracle - database restore to particular state for testing -
we use oracle(or postgres) database , application server execute integration tests. isolate each test 1 , database schema dropped , re-created before each test.
as see time taking process. application uses 100+ tables. thinking of writing custom sql delete unwanted data each tables. there better way save , restore database state?
( appears dbunit this, have not tried yet. )
a single test involves:
- create database schema.
- start app server.
- start multiple client applications.
- execute , verify.
we have 5000 odd tests, taking 700 hours or so. (we on grid environment, finishes overnight)
most of tests uses small data sizes, 10 mb.
oracle flashback allows restore table @ specified time point using simple sql query. documentation available here.
i don't know if postgre has similar feature.
Comments
Post a Comment