matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.77k stars 274 forks source link

[Refactoring]: do not create new go routine for TP query #18599

Open ouyuanning opened 3 weeks ago

ouyuanning commented 3 weeks ago

Why do you want to refactor this code?

类似select 1等单个scope的TP类语句,不要新申请go routine执行,使用当前协程即可

Describe the solution you'd like

不要新申请go routine执行,使用当前协程即可

Describe alternatives you've considered

No response

Additional information

No response

badboynt1 commented 11 hours ago

其实任意query,只要不包含connector dispatch merge这三个算子,都可以直接执行,不用起goroutine 如果有多个scope,只要递归先跑prescope就可以了