From 6edaf548ee6e4928c51e1dbe049016b0966fd283 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 11 Dec 2006 22:39:09 +0000 Subject: Removed call to get index metadata in JDBC repository. --- RELEASE-NOTES.txt | 5 +++++ .../com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 6784f81..7fbc6a1 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,6 +1,11 @@ Carbonado change history ------------------------ +1.1-BETA7 to 1.1-BETA8 +------------------------------- +- Removed call to get index metadata in JDBC repository. Oracle bug causes a + table analyze to run. + 1.1-BETA6 to 1.1-BETA7 ------------------------------- - Added @Authoritative annotation. diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java index c8ebfa8..8cb3715 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -370,9 +370,12 @@ public class JDBCStorableIntrospector extends StorableIntrospector { } // Gather index info... - IndexInfo[] indexInfo; + IndexInfo[] indexInfo = new IndexInfo[0]; boolean hasIndexInfo = false; + /* Oracle driver has a bug that always causes an analyze to run when + requesting index info. Checking indexes is not that important so + don't bother checking. Revisit if Oracle bug ever gets fixed. gatherIndexInfo: { if (resolvedTableName == null) { indexInfo = new IndexInfo[0]; @@ -449,6 +452,7 @@ public class JDBCStorableIntrospector extends StorableIntrospector { indexInfo = infoList.toArray(new IndexInfo[0]); hasIndexInfo = true; } + */ // Now verify that primary keys match. -- cgit v1.2.3