Re: [Rails] choosing the right rubygem mysql2 and ruby version

14 views
Skip to first unread message

Colin Law

unread,
Jan 13, 2019, 4:41:37 AM1/13/19
to Ruby on Rails: Talk
On Sat, 12 Jan 2019 at 23:36, fugee ohu <fuge...@gmail.com> wrote:
>
> How do I know which mysql2 gem version I need to use? Do they follow releases of rails and should I try to use the version that most closely matches my rails version? Also, how do I know which ruby version to use?

If this is an existing app then for gems just run bundle install and
it will install the version specified in Gemfile.lock
If you are upgrading then you can look at the gems changelog and see
if you need to update it.


Coln

fugee ohu

unread,
Jan 13, 2019, 6:06:54 PM1/13/19
to Ruby on Rails: Talk
If I want to use rails 5 

Phil Edelbrock

unread,
Jan 13, 2019, 7:47:21 PM1/13/19
to rubyonra...@googlegroups.com

> On Jan 12, 2019, at 3:35 PM, fugee ohu <fuge...@gmail.com> wrote:
>
> How do I know which mysql2 gem version I need to use? Do they follow releases of rails and should I try to use the version that most closely matches my rails version? Also, how do I know which ruby version to use?

btw- I read Pragprog's "Ruby Performance Optimization" (which is slightly out of date, but still awesome) and the short answer to which Ruby to use is the latest if you want the fastest performance. Since, say, 1.8/1.9 the major differences are big gains in speed. I haven't yet played with the new JIT stuff in 2.6, but it looks cool. I also read that they are thinking there should be a 3.0x speedup for Ruby 3.0 on top of that when it comes out. All those speed improvements compound to a much faster Ruby compared to older releases that are typically included on most OSs by default.

Good luck.


Phil

Reply all
Reply to author
Forward
0 new messages