Best WordPress Hosting
 

Logging slow queries with Active Support Notifications

via kinsta.com => original post link

Logging slow queries is an important part of performance tuning any Rails application. Rails provides a built-in mechanism for logging slow queries called Active Support Notifications.

This article will show you how to use Active Support Notifications to log slow queries in your Rails application. We will also provide tips on how to analyze slow query logs to identify and fix performance problems.

What is a slow query?