Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6872

Use ServerUtil.ConnectionFactory.getConnection() in UngroupedAggregateRegionScanner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.2.0, 5.1.4
    • core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              stoty Istvan Toth
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: