From: J-Van Date: 2006-11-28T06:35:17+09:00 Subject: Re: Two Advanced Ruby Performance Questions On 11/27/06, Sunny Hirai wrote: > Thanks also for the information on Mongrel. This project sounds > interesting. I am disappointed to learn that Rails is not thread safe. I > am still hoping that ActiveRecord will work well in a multi-threaded > environment however. The approach of multiple instances of mongrel and > multiple ruby interpreters is a good workaround. That said, I think I'd > have to rewrite ActiveRecord anyways as it relies on config files to set > datasources and such. Our application will probably need to set > datasources at run time so that we can split a table across multiple db > servers and let it know, at run-time, which server the data resides on. It's an opinion of the Rails developers that processes are the new threads -- scaling with processes is better/easier than scaling with threads. Joe