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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.