Hi ,

Is there any significant advantage of using ServerCacheClient?

Using ServerCacheClient,
PhoenixConnection pconn = DriverManager.getConnection(jdbcString,properties)
.unwrap(PhoenixConnection.class);
ServerCacheClient serverCache = new ServerCacheClient(pconn);
PreparedStatement pstmt =
serverCache.getConnection().prepareStatement(sqlQuery);
ResultSet rs = pstmt.executeQuery();


Using PhoenixConnection directly,

PhoenixConnection pconn = DriverManager.getConnection(jdbcString,properties)
.unwrap(PhoenixConnection.class);
PreparedStatement pstmt = pconn.prepareStatement(sqlQuery);
ResultSet rs = pstmt.executeQuery();


Thanks,
Nanda

Reply via email to