replied in line On Jun 15, 12:13 pm, James Hargreaves <[EMAIL PROTECTED] s.net> wrote: > Also, I am looking to share as much code as possible. I've written some > functions which I use in most of my code and I need these to be > available to all the sites, rather than maintaining several different > versions!
Sorry I didn't make myself clear. If they are sharing code, in terms of needing the same functions, you would be better to extract that functionality into plugins. When I said sharing code, I really meant sharing data, meaning that they needed the same database. I'd worry about having unrelated apps running as part of the same mongrel cluster accessing the same data base. > Anyway, so that is where I am at. Quick question - does anyone know how > much memory a connection to MySQL uses? I've ruled out the multiple > mongrels accessing multiple DBs on the premise that it will use too much > memory, but if MySQL does not use that much memory this might be worth > going for? Still a bad solution to a bad problem, but it looks like I'll > have to compromise somewhere... Not sure about memory use, but doubt its significant. Take a look at: http://drnicwilliams.com/2007/04/12/magic-multi-connections-a-facility-in-rails-to-talk-to-more-than-one-database-at-a-time/ Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---