Open unship opened 7 years ago
@biolee Thanks for your advice! @iamxy PTAL
This PR is related with query graph: https://github.com/pingcap/tidb/pull/3933/files
nice, LGTM !
It would be nice to see this + also an execution view (explain analyze
) as a flame graph, directly through the status port :-)
Summary
Add query plan graph to tidb's Web UI
Motivation
A sql query plan can be abstracted as a DAG which can be interactively visualized in browser as cockroach's init implementation of query plan graph @ QueryPlanGraph , and neo4j's implementation @ PlanView
Query Plan Graph can let user intuitively reasoning about how DB process sql to get data, and may help optimize their sql
Detailed design
Tensorflow is designed to be a computation engine which have some similarity with tidb stack, its monitor tool TensorBoard have DAG visualisation modul
Nodes and Edges can Represent operator and data flow
Outcome is
port from Tensorflow Doc