It's not Ruby that's slow, it's your database
08-Nov-2022 1164
Many people keep repeating that Ruby is slow. It is. But that doesn't matter, because your database is so much slower that it is the bottleneck. So, an alternative title would be "Ruby is slow, but that doesn't matter for you".While writing a gem that offers key-value storage in your existing Postgresql database, and benchmarking it, my old mantra kept popping up: Ruby isn't slow, the database is slow. So much that I decided to collect the benchmarks and backup that mantra for myself.In the industry, this is called I/O-bound, and is opposed by CPU-Bound performance. Most Ruby performance issues that I helped solve, fell in the first. The slowness of Ruby wasn't causing any problems.
It's not Ruby that's slow, it's your database #ruby #rubydeveloper #rubyonrails #that's #slow, #database #database https://rubyonrails.ba/link/it-s-not-ruby-that-s-slow-it-s-your-database