lujiajing1126 commented on pull request #5:
URL: https://github.com/apache/skywalking-banyandb/pull/5#issuecomment-862230292


   > > So I suppose, in our context, we can generate/choose an already 
optimized "logical" plan according to the criteria instead of optimizing an 
existing set of logical plans like what a general databse does.
   > 
   > got your point. banyandb will implement rule-based and cost-based 
optimization. The first is the "logical" plan as you mentioned, and the latter 
is the physical one. Based on that, if the "DAG" path is too rigid to adapt to 
cost-based optimization, we might choose another solution for the architecture 
of the execution plan.
   
   Yes. After some investigation, I found tree-structured logical plan may be 
more suitable for our cases,
   
   - use rule-based optimization for logical plan
   - generate multiple physical plans and choose the best one based on 
cost-based optimizer
   
   while DAG is still feasible for a physical plan. I will continue working on 
this PR.


-- 
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.

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


Reply via email to