Skip to content
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

Add SQLStatementParserCacheHook to Provide Extension Point for Application SQL Parse Cache Warm-up , Referred to as Preheat #34155

Open
youjie23 opened this issue Dec 26, 2024 · 0 comments · May be fixed by #34156

Comments

@youjie23
Copy link

Feature Request

Add SQLStatementParserCacheHook to Provide Extension Point for Application SQL Parse Cache Warm-up, Referred to as Preheat

Is your feature request related to a problem?

#24744 #3676 #4480 #5209 #2793 #3083

Describe the feature you would like.

We propose adding a SQLStatementParserCacheHook that serves as an extension point, allowing business applications to capture cache-missed compiled SQL statements. This mechanism is designed to enable application developers to use these captured SQL statements for parse cache warm-up before the actual user requests occur.

  • Objective: Facilitate application-level SQL parse cache warm-up to improve performance on initial queries.
  • Implementation: Introduce a hook that business logic can subscribe to, which triggers when there is a cache miss during SQL statement parsing. The hook should provide access to the missed SQL statement for external processing.
  • Benefit: Developers can preemptively compile and cache SQL statements in their applications, reducing the latency experienced by users on their first interaction with the system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants