Rails

Track Slow Query in Ruby on Rails

Performance bottlenecks in web applications often lurk beneath the surface, only becoming obvious when they impact user experience or cause infrastructure co...

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...

Be Careful With Your Database Migration

In the early stage as a Start-Up, we do many experiments to prove our assumption to reach product market fit. Updating database schema could be a daily or we...

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...