I'm in the process of setting up a "real" production environment on dedicated machines. In the meantime, I'm running everything in development mode on my desktop. So, that's a local postgresql database and a WEBrick server launched from radrails.
A major part of my application is migrating data from an old crappy database to my new spiffy one. I'm using script/runner to do this in a cronjob. My problem is that in development, it's *really* slow. It takes about 10 seconds to migrate a single row in the old database to about 30 rows in the new one. This is all done with simple rails models, and the vast majority of CPU time is in ruby, not the database. Is this performance normal in development mode using WEBrick? Should I see a huge improvement on the production setup (Apache with fastcgi on one server, postgres on another)? And what sort of profiling techniques can I be using to test things, either in development or production? I'm using the logs, but they're not that useful for the script/runner. - Michael _______________________________________________ Sdruby mailing list [email protected] http://lists.sdruby.com/mailman/listinfo/sdruby
