Skip to content

Commit

Permalink
Added comment as a warning that Oracle's JDBC driver's getExportedKey…
Browse files Browse the repository at this point in the history
…s() can be insanely slow (in the neighborhood of 30 secs per call)
  • Loading branch information
johncurrier committed Jun 23, 2014
1 parent 98c2cf2 commit ef7fe57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/sourceforge/schemaspy/model/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public void connectForeignKeys(Map<String, Table> tables) throws SQLException {
if (getSchema() != null || getCatalog() != null) {
try {
// get the foreign keys that reference our primary keys
// note that this can take an insane amount of time on Oracle (i.e. 30 secs per call)
rs = db.getMetaData().getExportedKeys(getCatalog(), getSchema(), getName());

while (rs.next()) {
Expand Down

0 comments on commit ef7fe57

Please sign in to comment.