tigergraph__install_query
Install a GSQL query on a TigerGraph graph, compiling it for faster repeated execution.
Instructions
Install a GSQL query on a TigerGraph graph, compiling it for faster repeated execution.
Use When: • You have a query you'll run multiple times • You want better query performance • Creating reusable query logic • Building query libraries
Quick Start:
{
"query_text": "CREATE QUERY getPersonFriends(VERTEX<Person> p) FOR GRAPH MyGraph { ... }"
}Common Workflow:
Write and test query with 'run_query' first
Once working, install with 'install_query'
Run with 'run_installed_query' (faster)
Tips: • Query text should start with 'CREATE QUERY' • Installation compiles the query for better performance • Can define parameters in query signature • Use 'show_query' to view installed query text
Related Tools: run_installed_query, drop_query, show_query
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Connection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles. | |
| graph_name | No | Name of the graph. If not provided, uses default connection. | |
| query_text | Yes | GSQL query text to install. |