phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nanda <tnkish...@gmail.com>
Subject Advantages/Disadvantages of using ServerCacheClient
Date Mon, 14 Dec 2015 12:30:42 GMT
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

Mime
View raw message