On Fri, Nov 20, 2009 at 3:41 AM, jhaagmans <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > 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 [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-talk?hl=.

