![]() ![]() Setting configuration parameters at run-time (for supported parameters) RedisGraph exposes the GRAPH.CONFIG endpoint to allowing for the setting and retrieval of configuration parameters at run-time. See the Remarks section for the list of available attributes. From the command line: redis-server -loadmodule. Ex.: 'SELECT FROM myview CONTEXT ('QUERYTIMEOUT''900000'). You can also define this parameter using the context when running a query from the VQL Shell ('Tools -> VQL Shell'). Syntax bool PDOStatement::setAttribute (attribute, value ) Parameters attribute: An integer, one of the PDO::ATTR or PDO::SQLSRVATTR constants. You can configure a query timeout on the data source of an application so that a Structured Query Language (SQL) statement will be interrupted if it fails to complete execution prior to the specified number of seconds. 06:26 8 Answers Hi, As you said, you can define the query timeout from the VDP Admin Tool: 'Tools -> Admin Tool Preferences -> Connection'. ![]() # Ruby's `Timeout` doesn't prevent queries from running for a long time. Sets an attribute value, either a predefined PDO attribute or a custom driver attribute. To expand on the accepted answer, here's how one could implement a module DatabaseTimeout, that also makes sure to reset the statement_timeout setting back to its original value. In the top menu, select the Settings icon. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |