You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Nanda <tn...@gmail.com> on 2015/12/14 13:30:42 UTC
Advantages/Disadvantages of using ServerCacheClient
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