Posted October 31st, 2017.
This post is inspired by Monitoring Slow SQL Queries via Slack. After reading that, I thought, how we can implement this in Rails. Then after a thorough search, I found that ActiveSupport::Notifications could help us in achieving this. ActiveSupport::Notifications provides a instrumention API to track not only SQL queries but also view... Read More
Posted July 31st, 2017.
Most of the rails developers write queries on daily basis. Some of the other day by mistake we follow rails way instead of SQL way to do tasks like sorting etc. But you might ask what’s the problem regarding which approach I take as long as I am able to get correct results. Yes, you may get correct results but you will end up with... Read More