-
Notifications
You must be signed in to change notification settings - Fork 152
Description
Is your feature request related to a problem? Please describe.
The output of SHOW PROXIED QUERIES grows unbounded and becomes difficult to navigate when identifying candidate queries for caching. The lack of filtering, projection, or cleanup mechanisms limits its practical usability. Converting this output into a virtual table (proxied_queries) would offer better flexibility and control.
Describe the solution you'd like
Besides the command, we should expose SHOW PROXIED QUERIES as a virtual/system table, for example, proxied_queries, with support for:
• SELECT ... FROM proxied_queries: enable filtering, aggregation, substring, and conditional expressions—similar to how ProxySQL exposes stats_mysql_query_digest.
• TRUNCATE proxied_queries: clear the contents to start collecting fresh data, improving analysis after configuration or workload changes.
Describe alternatives you've considered
Manual parsing of the full output and restarting the component to reset internal stats—both inefficient and error-prone.
Additional context
This will improve usability for caching strategies and real-time analysis.