Performance

Handling Race Conditions in Rails

When developing web applications using Ruby on Rails, you’ll often encounter situations where you need to either find a record in your database or create a n...

Speed up Rails controller speed easily

When we adding a Rails controller action, especially for #show. Usually it would be like this: def show post = Post.find(params[:id]) render json: post...