I've had great success with the valium and activerecord-import gems, when 
it comes to a few places where I need to speed things up because I have 
hundreds or even many thousands of database rows that need processing and 
when it just so happens that in those cases I don't need full blown AR 
objects, just an array of a column or two will do just fine...

Dave

On Friday, August 17, 2012 5:41:04 AM UTC-7, MikeGehard wrote:
>
> Good morning all,
>
> I am wondering if there is any ongoing work to speed up ActiveRecord 
> object instantiation from the database? I am working on a project where we 
> have determined that loading AR records from the database has become a 
> bottleneck in a coupe of spots. To alleviate this we have resorted to raw 
> SQL and hashes.
>
> After reading this article (
> http://merbist.com/2012/02/23/quick-dive-into-ruby-orm-object-initialization/),
>  
> it seems to me that if we made the lifecycle hooks optional we could get a 
> little speed bump. They would be on by default but I could turn them off 
> when I declared my AR derived class. 
>
> Any other places that I can help out to make this happen?
>
> Thanks,
> Mike
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/_bUBlO1xcNEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to