If database queries are taking too long to perform, and your application is becoming unresponsive, you can configure a timeout for database queries.
We add two functions (cubrid_get_query_timeout and cubrid_set_query_timeout) to get and set the query timeout of database queries.
bool cubrid_set_query_timeout(resource $result, int $timeout): This function is used to set query timeout of the specified result resource according to the given $result.
result: The result resource that is being evaluated.
int cubrid_get_query_timeout(resource $result): This function get the value of query timeout with the specified result resource.