1 grid.warmUp
Use this function to create a connection for each node of grid and maintain it alive. This action improve the performance with the next actions on nodes because the connection is already active.
<grid.warmUp name='name'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | The defined grid name. |
Returns | |
---|---|
Type | Description |
String | Returns the list of nodes and the connection creation time. If the connection already exists, the time showed is 0. |
Example
Copy
<xsql-script> <body> <println><grid.warmUp name='grid_test' /></println> </body> </xsql-script>
+---------------+-------+---------+
|node |time |exception|
|char |long |object |
|visible |visible|visible |
+---------------+-------+---------+
|demo_foodmart_i| 45| |
|demo_chinook_i | 50| |
|demo_apps_all | 42| |
+---------------+-------+---------+