Implement performance fix for catalog check in DatabaseMetaData#3528
Implement performance fix for catalog check in DatabaseMetaData#3528SophiahHo wants to merge 1 commit intopgjdbc:masterfrom
Conversation
|
Did you check to make sure the plan is the same as previously ? |
|
@davecramer I assume the plan would be different, because I verified that the change drastically improved the performance of |
|
@SophiahHo thanks! |
|
@SophiahHo reviewing this as I understand this you are adding |
|
@davecramer Fabricating an empty ResultSet would be pages and pages long. Additionally, returning an empty ResultSet would be incorrect behaviour if the database is down, the database user credentials were revoked or changed, etc., which should throw an Exception. |
|
I think it should be uncommon for the client code to ask for a list of "procedures in a foreign catalog", so it should be fine to go with @SophiahHo , in some of the cases, we use if (catalog != null && !catalog.equals(...)) {
// Returns empty resultset
((BaseStatement) createMetaDataStatement()).createDriverResultSet(f, v)
}I guess Dave meant something like that. WDYT? |
|
Does it mean we should close the current PR then? |
Yes, I would think so. |
|
Closed in favour of #3588 |
Fixes DatabaseMetaData performance issue #3511
All Submissions:
New Feature Submissions:
./gradlew styleCheckpass ?Changes to Existing Features: