Skip to content

DOC-2487-Added a new page for Query Plan Caching #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2025

Conversation

Tushar-TG-14
Copy link
Collaborator

No description provided.

@victorleeTG victorleeTG changed the title DOC-2487-Added a new page DOC-2487-Added a new page for Query Plan Caching Apr 2, 2025
This page covers how TigerGraph handles query execution and optimization through query plan caching.
When a query is executed, the system parses, transforms, and optimizes it before generating a query plan in JSON format to guide its execution.
While these steps are essential for processing the query, they can introduce significant overhead, especially when the same query is executed multiple times.
To mitigate this, TigerGraph caches the generated query plan in memory, ensuring faster execution on subsequent queries.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To mitigate this, TigerGraph caches the generated query plan in memory, ensuring faster execution on subsequent queries.
To mitigate this, TigerGraph caches the generated query plan in memory, ensuring faster execution on subsequent executions of a query.

Comment on lines 10 to 11
In many cases, users may frequently change constants in their queries. These changes can invalidate the cached query plan, making it necessary to re-interpret the query.
To handle this issue, TigerGraph employs a process known as *query normalization*.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In many cases, users may frequently change constants in their queries. These changes can invalidate the cached query plan, making it necessary to re-interpret the query.
To handle this issue, TigerGraph employs a process known as *query normalization*.
In many cases, users may frequently change constants in their queries. These changes would invalidate the cached query plan, making it necessary to re-interpret the query.
To avoid the reinterpretation, TigerGraph employs a process known as *query normalization*.

@Tushar-TG-14 Tushar-TG-14 merged commit acfb401 into 4.2.0-dev Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants