[Dbix-class] Re: DBIx::Class::Fixtures speedup
Drew Taylor
taylor.andrew.j at gmail.com
Wed Apr 23 12:20:33 BST 2008
On Wed, Apr 23, 2008 at 12:14 PM, Drew Taylor <taylor.andrew.j at gmail.com> wrote:
> I'm using Fixtures in my app, and am overall pleased with it. But I
> now have a couple thousand fixture items which are imported, and
> that's taking upwards of 1min+. Out of curiosity I commented out the
> creation of the tmp_fixtures_dir and just read from fixtures_dir. I
> shaved my populate() time in approximately half. What's the reasoning
> for the tmp dir? Safety in case anything goes wrong? For me, it's just
> a lot of wasted IOs and time. :-) Luke, any objections if I remove
> this?
Well, ignore my previous patch because I forgot to run make test first
so I missed a typo. Also, after running the test I get an error doing
svn diff, so I'm assuming that a directory is being deleted which svn
expects to be there. If you agree with the concept of removing the tmp
dir, then I'll figure out the test too.
Drew
--
----------------------------------------------------------------
Drew Taylor * Web development & consulting
Email: drew at drewtaylor.com * Site implementation & hosting
Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres
----------------------------------------------------------------
More information about the DBIx-Class
mailing list