提交 062151c3 authored 作者: Thomas Mueller's avatar Thomas Mueller

An optimization for IN(..) and IN(SELECT...) using the system property h2.optimizeInList

上级 503350ba
...@@ -94,13 +94,13 @@ public class BtreeCursor implements Cursor { ...@@ -94,13 +94,13 @@ public class BtreeCursor implements Cursor {
first = false; first = false;
} else { } else {
top.page.next(this, top.position); top.page.next(this, top.position);
}
if (currentSearchRow != null && last != null) { if (currentSearchRow != null && last != null) {
if (index.compareRows(currentSearchRow, last) > 0) { if (index.compareRows(currentSearchRow, last) > 0) {
currentSearchRow = null; currentSearchRow = null;
currentRow = null; currentRow = null;
} }
} }
}
return currentSearchRow != null; return currentSearchRow != null;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论