Skip to content
Danial Asghar
  • Writing
  • Projects
  • Tools

    Jobs & Queues

    • Sidekiq Retry Schedule Calculator
    • Job Queue Capacity Calculator

    Postgres

    • Postgres Lock Mode Lookup
    • Postgres Deadlock Analyzer
    • Sidekiq & Puma Connection Pool Calculator

    Developer utilities

    • Cron Expression Explainer & recurring.yml Generator
    All 6 tools →Runs in your browser ยท nothing uploaded
  • About
Services
  • Writing
  • Projects
  • Tools
    • Postgres Lock Mode Lookup
    • Sidekiq Retry Schedule Calculator
    • Job Queue Capacity Calculator
    • Postgres Deadlock Analyzer
    • Sidekiq & Puma Connection Pool Calculator
    • Cron Expression Explainer & recurring.yml Generator
  • About
Services →
  1. Home
  2. /
  3. Tools
  4. /
  5. Postgres & ActiveRecord

Postgres & ActiveRecord tools

Most Postgres incidents in a Rails app are not about slow queries. They are about waiting: a migration queued for a lock behind a long report, two transactions updating the same rows in opposite order, a pool with fewer connections than the threads asking for them.

These tools answer those questions directly. Paste the error you were handed, or the statement you are about to run, and see which lock is involved, who is waiting for whom, and what to change. Everything runs in this tab; nothing you paste is sent anywhere.

  • Postgres Lock Mode LookupLook up the table lock a Postgres statement or Rails migration takes, and check whether one statement waits behind another.
  • Postgres Deadlock AnalyzerPaste a Postgres deadlock report and see the wait cycle, the lock pattern behind it and the fix. Runs in your browser.
  • Sidekiq & Puma Connection Pool CalculatorSize your Rails database pool against Puma threads and Sidekiq concurrency, and check total connections against Postgres max_connections.
Danial Asghar

Reliability engineering for Rails and AI backends.

Writing

  • All writing
  • Topics
  • RSS

Work

  • Services
  • Tools
  • Projects

About

  • About
  • Contact
  • Privacy

© 2026 Danial Asghar

GitHubX (Twitter)Email