Rootstrap Blog

Bruno Vezoli

Total 6 Posts

Link Tracking with StimulusReflex

This is the first of a series about StimulusReflex, a new tool to help you bring Rails to the era of the backend-side-managed frontends. I was surprised to see that Phoenix LiveView and following with things like Motion and Sockpuppet use WebSockets to push updates from the server to the client and update the DOM accordingly.

Continue Reading

Rails N + 2 queries

We usually try to solve performance problems by using #includes to get rid of N + 1 queries but this doesn’t always fix the issue; in fact, it can even create more queries under some circumstances. This post shows a few examples of when that happens and how to deal with it.

Continue Reading