提交 9d0b4297 authored 作者: Thomas Mueller's avatar Thomas Mueller

Oracle linked tables: speed up link creation

上级 c70f75bd
......@@ -669,7 +669,7 @@ class WebThread extends Thread implements DatabaseEventListener {
throws SQLException {
// index reading is very slow for oracle (2 seconds per index), so don't
// do it
ResultSet rs = meta.getIndexInfo(null, schema, table, false, false);
ResultSet rs = meta.getIndexInfo(null, schema, table, false, true);
HashMap indexMap = new HashMap();
while (rs.next()) {
String name = rs.getString("INDEX_NAME");
......
......@@ -182,7 +182,7 @@ public class TableLink extends Table {
addIndex(list, IndexType.createPrimaryKey(false, false));
}
try {
rs = meta.getIndexInfo(null, null, originalTable, false, false);
rs = meta.getIndexInfo(null, null, originalTable, false, true);
} catch (SQLException e) {
// Oracle throws an exception if the table is not found or is a
// SYNONYM
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论