[Dbix-class] DBIx::Class::Fixtures speedup
Matt S Trout
dbix-class at trout.me.uk
Wed Apr 23 20:42:09 BST 2008
On Wed, Apr 23, 2008 at 04:37:54PM +0100, Drew Taylor wrote:
> > What if you used link() instead of a copy?
> >
> > Or just make the dump code make the tmp dir, and populate open a file handle
> > to everything in advance so you don't have to worry about paths changing
> > under you?
>
> As I understand your suggestion, dumping to the tmp dir wouldn't work
> for me because I make a dump only every so often, but populate from it
> many times per day as I run my tests. I just want to zip through the
> existing files w/o any IO other than reading/slurping the .fix files.
If dumping uses a temp dir, and populate just opens the filehandles,
that's exactly what you'd get.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the DBIx-Class
mailing list