Query Timeout not working using jpa

From: Shubham Mittal <mittalshubham30(at)gmail(dot)com>
To: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Query Timeout not working using jpa
Date: 2021-11-09 14:31:02
Message-ID: CA+ERcR--sYV6Gk2SKRdnX8i73mJQM-LLCVt1n5iiv13HomyyJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Team,

Can anyone help in setting the query timeout in postgres 12 using spring
data jpa??

Currently using below code :

query.setHint("javax.persistence.query.timeout", 10000);

Thanks & Regards,
Shubham

Browse pgsql-general by date

  From Date Subject
Next Message Avi Weinberg 2021-11-09 14:50:45 Logical Replication - Should Destination Table Columns Be Defined With Default Value
Previous Message Brent Wood 2021-11-09 01:18:18 Re: Zero Downtime Upgrade