[ https://issues.apache.org/jira/browse/PHOENIX-6872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17687049#comment-17687049 ]
ASF GitHub Bot commented on PHOENIX-6872: ----------------------------------------- stoty opened a new pull request, #1562: URL: https://github.com/apache/phoenix/pull/1562 …onScanner > Use ServerUtil.getConnection() in UngroupedAggregateRegionScanner > ----------------------------------------------------------------- > > Key: PHOENIX-6872 > URL: https://issues.apache.org/jira/browse/PHOENIX-6872 > Project: Phoenix > Issue Type: Bug > Components: core > Reporter: Istvan Toth > Priority: Minor > > We've optimized Connection handling by using a PhoenixConnection from the > CQSI. > However, we only need an (H)Connection here, so we could use > org.apache.phoenix.util.ServerUtil.ConnectionFactory.getConnection(ConnectionType, > RegionCoprocessorEnvironment) > and avoid instantiating a PhoenixConnection. > We already avoid the very expensive Connection creation, so this is just a > small incremetal improvement over the current code. -- This message was sent by Atlassian Jira (v8.20.10#820010)