You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
前提
首先,你需要记住这些点,这是讨论的前提,或者说我们观察到的现象。
现在,我们就要考虑,究竟按照什么维度来调度 SQL 执行,是 DB 维度还是表维度?我举个例子:假如说现在一个 SELECT 语句命中了四个表,db_0.tab_0, db_0.tab_1 和 db_1.tab_0, db_1.tab_1,
如果是表维度,那么事务问题怎么解决?
如果是 DB 维度,那么结果集处理的性能问题怎么解决?
可行方案
这个是没得选的。事务:
方案1
优先
方案2
都是 DB 维度执行,然后尽量运用归并排序。
合并 DB 维度
buildQuery VS executeStrategy
谁来决定要不要归并排序
Beta Was this translation helpful? Give feedback.
All reactions