[ https://issues.apache.org/jira/browse/PHOENIX-6872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Istvan Toth updated PHOENIX-6872: --------------------------------- Summary: Use ServerUtil.ConnectionFactory.getConnection() in UngroupedAggregateRegionScanner (was: Use ServerUtil.getConnection() in UngroupedAggregateRegionScanner) > Use ServerUtil.ConnectionFactory.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 > Assignee: 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)