The RoR app that I have inherited was running without MySQL native
drivers on Ubuntu. I just installed MySQL gems to get the benifit of
using Native drivers. However:
-
How do I know that the app has switched to using the native drivers
instead of the slower ruby drivers.
-
It is an app running Mongrel cluster with a Capistrano deployment
script. Will this gem take effect without redeploying (i.e.
restarting)?
Bharat
On 13 Sep 2008, at 13:51, Bharat R. wrote:
The RoR app that I have inherited was running without MySQL native
drivers on Ubuntu. I just installed MySQL gems to get the benifit of
using Native drivers. However:
- How do I know that the app has switched to using the native
drivers
instead of the slower ruby drivers.
It says so in the log file (or better: it doesn’t warn you about the
pure ruby one anymore).
- It is an app running Mongrel cluster with a Capistrano deployment
script. Will this gem take effect without redeploying (i.e.
restarting)?
You’ll need to restart your cluster for it to take effect as far as I
know.
Best regards
Peter De Berdt
Thanks Peter. I restarted the cluster. The speed difference is
noticable. I have looked at the logfiles and they are clean. No
mention of mysql gem though.
On 13 Sep 2008, at 17:48, Bharat R. wrote:
Thanks Peter. I restarted the cluster. The speed difference is
noticable. I have looked at the logfiles and they are clean. No
mention of mysql gem though.
That’s what it should be. If you don’t have the native driver
installed, the logs will say you are running the pure ruby version and
you’re better off installing the native one. So all should be fine now.
Best regards
Peter De Berdt