Hi all, I believe I''ve installed the Windows native(C) bindings for MySQL by executing ''gem install mysql'' and choosing the ''1. mysql 2.7.3 (mswin32)'' option. However, I''m not sure how to tell if Rails is making use of this. I am able to execute "require ''mysql.so''" in irb, so I think the C bindings are installed properly. However, I expected to see a difference in performance for my fixture load and I did not. Is there a definitive way I can tell if these bindings are being used? Thanks! Brian Hartin -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-11 20:43 UTC
Re: How to tell if MySQL native bindings are used (Win32)?
On 11 Jun 2008, at 21:30, Brian Hartin wrote:> > Hi all, > > I believe I''ve installed the Windows native(C) bindings for MySQL by > executing ''gem install mysql'' and choosing the ''1. mysql 2.7.3 > (mswin32)'' option. However, I''m not sure how to tell if Rails is > making > use of this. > > I am able to execute "require ''mysql.so''" in irb, so I think the C > bindings are installed properly. However, I expected to see a > difference in performance for my fixture load and I did not. Is > there a > definitive way I can tell if these bindings are being used? >rails prints a warning message when it uses the pure ruby ones. If you wanted to be really sure I suppose you could just remove the ruby one (activerecord/lib/active_record/vendor/mysql.rb). I think performance differences would be more noticeable when returning large result sets. Fred> Thanks! > > Brian Hartin > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---