Query_track

screenshot of Query_track
rails

Find time-consuming database queries for ActiveRecord-based Rails Apps

Overview

QueryTrackGem is an essential maintainability tool designed for ActiveRecord-based Rails applications that helps developers identify time-consuming database queries. By simplifying the process of monitoring SQL performance, it enhances application efficiency and user experience. The gem integrates seamlessly with Slack, offering notifications that include critical information such as backtrace, raw SQL, and execution time, ensuring developers are always informed about potential bottlenecks in their application.

With customizable features, developers can tailor the tool to fit their specific needs and workflows. Its ability to filter noisy warnings and provide precise insights into SQL queries makes it a valuable resource for any Rails developer looking to optimize their applications.

Features

  • SQL Duration Limit: Set specific thresholds for query duration to minimize performance issues and focus on significant slowdowns.
  • Console Log Enablement: Easily enable console logging via configuration to assist in monitoring SQL performance directly in development.
  • Filtering Capabilities: Skip warnings from certain directories or gems, allowing you to focus on critical performance issues without unnecessary noise.
  • App Directory Configuration: Automatically filter queries based on your app's directory structure, ensuring accurate backtrace findings.
  • Toggle Functionality: Use environment variables to easily enable or disable QueryTrack without needing to push new code, providing flexibility in maintenance.
  • Slack Notifications: Receive real-time alerts about slow SQL queries directly in Slack, helping teams respond to issues immediately.
  • Custom Notification Handlers: Create personalized handlers to send slow query data to various sources, such as logs or other messaging platforms.
  • Performance Optimization Notes: Designed to minimize synchronous delays, making it suitable for production use even in horizontally scaled applications.
rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.