workOwonworkOwonA New Way to Connect
HomeFeedJobsCommunitiesEventsFeaturesAbout workOwon
HomeFeedJobsCommunitiesEventsFeaturesAbout workOwon
HomeCommunitiesJava & Spring Developers India

One runaway report query held a lock for 40 minutes and took down our payouts API last month.

AS

Aarav Sharma

Senior Backend Engineer @ Paylane | Java, Spring Boot, Kafka | Building payment rails that don't wake you up at 3am

7 Oct 2026· Java & Spring Developers India

One runaway report query held a lock for 40 minutes and took down our payouts API last month. Now every service sets `options=-c statement_timeout=30s` on the Hikari datasource. Long-running jobs use a separate datasource with a higher limit. Should have done this years ago.
5 reactions3 comments

Comments

  • RM

    Rohan Malhotra7 Oct 2026

    Also lock_timeout! A migration waiting on a lock can block every query behind it.

  • H

    Harshita7 Oct 2026

    Adding this to our service template today.

  • DJ

    Dhruv Joshi7 Oct 2026

    Didn't know you could set it per connection. Thanks!

Join the conversation

Join workOwon to react, comment and follow people and communities you care about.

Log inJoin now

Popular communities

See all