[LRUG] Request for assistance with Rails performance oddity

Jon Leighton j at jonathanleighton.com
Fri Oct 29 12:31:51 PDT 2010


I can't think of an obvious answer. Do you have any validations or
callbacks in place, and if so are they doing anything which could be
computationally expensive?

You might try using http://github.com/zdennis/activerecord-import in
your importation script. It allows you to bypass validation (if you
want) and you can also bypass actually creating any instances at all
(just load the values directly into the database).

You could also try using ruby-prof to profile the code and see where
it's spending time: http://github.com/rdp/ruby-prof

Jon

On Fri, 2010-10-29 at 20:11 +0100, John Winters wrote:
> On 29/10/10 20:09, John Winters wrote:
> [snip]
> > Thanks in advance for any assistance which you can offer.
> 
> I should perhaps have added:
> 
> Platform: Linux x86_64
> CPU:      Core 2 Duo
> RAM:      4G
> 
> It's definitely not swapping or anything like that.
> 
> John
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20101029/ce4c25f1/attachment-0003.sig>


More information about the Chat mailing list