提交 40d0ad31 authored 作者: Thomas Mueller's avatar Thomas Mueller

The data index is no longer called 'scan' because sometimes it's a direct lookup.

上级 7de44b9e
......@@ -45,7 +45,7 @@ public class ScanIndex extends BaseIndex implements RowIndex {
private long rowCount;
public ScanIndex(TableData table, int id, IndexColumn[] columns, IndexType indexType) {
initBaseIndex(table, id, table.getName() + "_TABLE_SCAN", columns, indexType);
initBaseIndex(table, id, table.getName() + "_DATA", columns, indexType);
if (database.isMultiVersion()) {
sessionRowCount = New.hashMap();
}
......
......@@ -22,7 +22,7 @@ SELECT COUNT(*) FROM TEST;
-- Display the query plan - 'direct lookup' means the index is used
EXPLAIN SELECT COUNT(*) FROM TEST;
--> SELECT COUNT(*)
--> FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */
--> FROM PUBLIC.TEST /* PUBLIC.TEST_DATA */
--> /* direct lookup */
;
......@@ -90,7 +90,7 @@ SELECT MIN(VALUE), MAX(VALUE) FROM TEST;
-- Display the query plan - 'direct lookup' means it's optimized
EXPLAIN SELECT MIN(VALUE), MAX(VALUE) FROM TEST;
--> SELECT MIN(VALUE), MAX(VALUE)
--> FROM PUBLIC.TEST /* PUBLIC.TEST_TABLE_SCAN */
--> FROM PUBLIC.TEST /* PUBLIC.TEST_DATA */
--> /* direct lookup */
;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论