Mike Coutermarsh
  • Home
  • About
  • Twitter
  • GitHub
Sign in Subscribe
PlanetScale

Deploy requests now alert on potential unwanted changes

  • Mike Coutermarsh

Mike Coutermarsh

Jul 6, 2022

View this post on PlanetScale.

Get notified of new posts

Enter your email
Subscribe

Trick for fixing Rails `find_by` N+1's

Recently I had some code that was doing 100's of find_by queries. Due to the way it was setup, a simple fix using includes wasn't possible. I was able to know which records would be called via find_by though, meaning I should be able to preload all the
Feb 26, 2023 2 min read

New Rails health check endpoint

Rails just recently added a default /up route that will return a 200 when the application is running. I've had to implement this in pretty much every Rails app I've ever worked on. This is a nice addition! If you're not familiar. This is useful for load balancers which need
Jan 13, 2023 1 min read

Solving N+1’s with Rails `exists?` queries

I recently solved a Rails performance issue with exists? queries in our Rails API. Shared all the details on PlanetScale's blog. Check it out here: Solving N+1's with Rails exists queries.
Jan 10, 2023
Mike Coutermarsh © 2023
  • HTML/CSS to Image API
  • Twitter
  • GitHub
  • LinkedIn