SSE: Group data source node execution by data source (#72935)

Execute all queries to the same datasource in a single request.

Uses the query index and the graph node ID index, and then a stable dependency graph sort based on node input index number in attempt to keep the original query order intact.
This commit is contained in:
Kyle Brandt
2023-08-18 07:49:59 -04:00
committed by GitHub
parent 5e61b54fa3
commit 720d716e45
3 changed files with 122 additions and 64 deletions

View File

@ -141,7 +141,7 @@ func (s *Service) buildMLNode(dp *simple.DirectedGraph, rn *rawNode, req *Reques
return &MLNode{
baseNode: baseNode{
id: dp.NewNode().ID(),
id: rn.idx,
refID: rn.RefID,
},
TimeRange: rn.TimeRange,