On Fri, Nov 20, 2009 at 3:41 AM, jhaagmans <jaap.haagm...@gmail.com> wrote:

> I haven't had a chance to test Conrad's suggestion, but I've also seen
> that I reach the connection limit for ActiveRecord. Is there a way to
> do, for example:
>
> hosts.each do |host|
>  #Do all kinds of stuff to host
> end
> hosts.save
>
> So I don't have alot of concurrent connections to my database?
>
>
You should be able to wrap it into a single transaction.

Good luck,

-Conrad


> --
>
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=.


Reply via email to