提交 d8ea7a95 authored 作者: Thomas Mueller's avatar Thomas Mueller

New database setting OPTIMIZE_IN_SELECT (enabled by default for version 1.3.x).…

New database setting OPTIMIZE_IN_SELECT (enabled by default for version 1.3.x). If enabled, IN(SELECT...) conditions are faster if there are many rows in the table or subquery.
上级 2a2d5806
......@@ -60,6 +60,7 @@ public class ConditionInSelect extends Condition {
if (all && rows.getRowCount() > 1) {
return ValueBoolean.get(false);
}
l = l.convertTo(rows.getColumnType(0));
if (rows.containsDistinct(new Value[] { l })) {
return ValueBoolean.get(true);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论