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

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

  • Mike Coutermarsh

Mike Coutermarsh

Jan 10, 2023

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.

Solving N+1's with Rails exists queries

Get notified of new posts

Enter your email
Subscribe

Automating with Cursor commands

I've been very interested lately in how I can use AI to take care of tasks for me. Here is one use case we've found that has been successful so far. New post over on the PlanetScale blog. Read here: Automating our changelog with Cursor commands
Jan 7, 2026

AstroVim slow on large files

If you're finding AstroVim is lagging on very large files, it is possible the source of the problem is vim-illuminate. To determine if it is, run :TSDisable illuminate. Does it solve your problem? Large file cutoff If that solved your problem, you can disable illuminate for large files
Apr 19, 2024

How to use GitHub Copilot with AstroVim 4

This took me a while to figure out. In this file: ~/.config/nvim/lua/community.lua You need to add the following line. { import = "astrocommunity.completion.copilot-lua-cmp" }, Then, when you start nvim again. Run :Copilot auth. This will trigger the setup and you'll be good to
Apr 16, 2024
Mike Coutermarsh © 2026
  • HTML/CSS to Image API
  • Twitter
  • GitHub
  • LinkedIn