Query timeout with TUniQuery and PostgreSQL

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
therat
Posts: 5
Joined: Wed 12 Jan 2011 16:38

Query timeout with TUniQuery and PostgreSQL

Post by therat » Fri 25 Jun 2021 10:36

I want to limit the amount of time a SELECT query runs. I could not find any properties on TUniConnection or TUniQuery that allow me to implement such behaviour.

Any idea what else I can try?

I am using UniDac 8.4.3 on Berlin 10.1

evgeniym
Devart Team
Posts: 103
Joined: Thu 13 May 2021 07:08

Re: Query timeout with TUniQuery and PostgreSQL

Post by evgeniym » Fri 25 Jun 2021 13:49

Hi there,
You may use SpecificOptions -> CommandTimeout parameter to specify the maximum execution time of the request.

Regards,
Evgeniy

Post Reply