Database load spiked and this has dramatically increased error rates and degraded times on responses. Automatic re-indexing was enabled over the weekend. A re-index of the routes table changed the statistics on the table. This resulted in much less efficient queries there.
Before Rails 6.1, batch processing methods like find_each, find_in_batches and in_batches didn’t support the ORDER BY clause. By default the order was set to id ASC.
Explore the Ruby code behind popular solutions to learn how they were created. Improve your code by applying those patterns in your projects and libraries.
I've been doing this for a while now, so I've heard lots of guesses as to why Ruby isn't faster. I refuse to say "slow", because Ruby isn't meaningfully slower than it's close competition (exception Javascript, but I would rather say 'JS is fast' than 'Ruby is slow').
Farhan Thawar (VP of Engineering at Shopify) and Ben Orenstein (CEO of Tuple) address common objections to pair programming, how to be a great pair, whether pairing obviates code review, introducing the practice to new teams, and how Shopify is continuing its pairing culture in a digital-first world.
We think that Tech Debt is just bad code done by reckless people, here's a bigger picture view of what that really means in a Sustainable Software era.
The value of Root Cause Analysis is in the process: Even if you do not identify specific dominoes in your failure cascade that you could remove to protect yourself in the future your investigation may identify things that you can improve.
“Error Budget”: How much infrastructure you’re allowed to set on fire to learn the meaning of the word “heiß”. Every organization has an error budget, but most don’t plan for it.