You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
load method in JdbcDatabaseOperations will load all databases. if there are a lot of databases, it takes a lot of time.
@OverridepublicJdbcSchemaload(StringdatabaseName) throwsNoSuchSchemaException {
// We need to load the database as needed NOT load them all. List<String> allDatabases = listDatabases();
StringdbName =
allDatabases.stream()
.filter(db -> db.equals(databaseName))
.findFirst()
.orElseThrow(
() -> newNoSuchSchemaException("Database %s could not be found", databaseName));
returnJdbcSchema.builder()
.withName(dbName)
.withProperties(ImmutableMap.of())
.withAuditInfo(AuditInfo.EMPTY)
.build();
}
How should we improve?
No response
The text was updated successfully, but these errors were encountered:
What would you like to be improved?
load method in
JdbcDatabaseOperations
will load all databases. if there are a lot of databases, it takes a lot of time.How should we improve?
No response
The text was updated successfully, but these errors were encountered: