Github user chrajeshbabu commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/168#discussion_r63463584
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java ---
@@ -1016,7 +1016,7 @@ private MutationState buildIndexAtTimeStamp(PTable
index, NamedTableNode dataTab
// connection so that our new index table is visible.
Properties props = new Properties(connection.getClientInfo());
props.setProperty(PhoenixRuntime.CURRENT_SCN_ATTRIB,
Long.toString(connection.getSCN()+1));
- PhoenixConnection conn =
DriverManager.getConnection(connection.getURL(),
props).unwrap(PhoenixConnection.class);
+ PhoenixConnection conn = new PhoenixConnection(connection,
connection.getQueryServices(), props);
--- End diff --
DriverManager.getConnection has more overhead than initializing the
PhoenixConnection right that's why changed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---