fast database resets

20 views
Skip to first unread message

Stephen Haberman

unread,
Aug 22, 2010, 11:21:09 PM8/22/10
to growing-object-o...@googlegroups.com
Hi,

I reread GOOS today--great book, I really like the focus on acceptance
tests, walking skeletons, etc. The builders too--I use them, but not as
elegantly--something to work on.

The persistence test chapter was also nice. It made me think to write up
a tip I've been using to quickly reset databases with large schemas:

http://www.draconianoverlord.com/2010/08/22/joist-tip-fast-database-resets.html

I'm sure it's not an original idea, but I thought I'd pass it along in
case it helps others who are currently enjoying working with a large
enterprise schema. :-)

- Stephen

Nat Pryce

unread,
Aug 23, 2010, 3:38:48 AM8/23/10
to growing-object-o...@googlegroups.com
Nice. I've used truncate table to speed up db resets in the past. I
like the idea of moving the reset code into the database but worry
about having the logic of what tables store domain objects in
different places. Having the ORM generate the reset procedure is a
neat solution.

--Nat

www.natpryce.com

On 23 Aug 2010, at 04:21, Stephen Haberman <ste...@exigencecorp.com>
wrote:

Reply all
Reply to author
Forward
0 new messages