Istvan Toth created PHOENIX-6872:
------------------------------------

             Summary: Use ServerUtil.getConnection() in for  Server Side Upsert 
Select
                 Key: PHOENIX-6872
                 URL: https://issues.apache.org/jira/browse/PHOENIX-6872
             Project: Phoenix
          Issue Type: Bug
          Components: core
            Reporter: Istvan Toth


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)

Reply via email to