codeant-ai-for-open-source[bot] commented on PR #38569:
URL: https://github.com/apache/superset/pull/38569#issuecomment-4035779160

   ## **Sequence Diagram**
   
   This PR updates the ExtraCache regex so templated helper calls, including 
nested function calls, are detected and incorporated into query cache keys, 
reducing incorrect cache hits. The diagram shows how query execution now uses 
the updated detection when building cache keys.
   
   ```mermaid
   sequenceDiagram
       participant Client
       participant API
       participant TemplateProcessor
       participant ExtraCache
       participant Cache
   
       Client->>API: Run templated query
       API->>TemplateProcessor: Render template and prepare cache key
       TemplateProcessor->>ExtraCache: Scan template for cache helpers
       ExtraCache->>ExtraCache: Match helper calls including nested functions
       ExtraCache-->>TemplateProcessor: Indicate extra cache keys present
       TemplateProcessor->>Cache: Build cache key with extra values
       Cache-->>API: Return cached or fresh result
       API-->>Client: Return query result
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to