🔖 Posts about refactor

Eliminate N+1 queries and improve Rails app performance with this effective Eager Loading tip

In Rails applications, N+1 queries can cause significant performance issues. They occur when you have a list of items and perform a separate query to retrieve associated data for each item. This can result in poor performance, and even more so if...

How I decide to pass on a parameter within a component.

### How I decide to pass on a parameter within a component. Why I chose to explicitly pass the **tag** parameter in **LinkComponent**. When creating a component in Rails, especially when using a component-based architecture like ViewComponent or similar, I was...