Sharding Support

Lance Andersen lance.andersen at oracle.com
Tue Jun 30 17:25:33 UTC 2015


As there are several databases that provide support for sharding, we have put together a simple sharding API for JDBC.  

    DataSource ds = new MyDataSource();
    ShardKey shardKey = ds.createShardKeyBuilder()
                           .subkey("abc", JDBCType.VARCHAR)
                           .subkey(94002, JDBCType.INTEGER)
                           .build();
    Connection con = ds.createConnectionBuilder()
                       .user("rafa")
                       .password("tennis")
                       .setShardKey(shardKey);
                       .build();


  You can find the specdiff  at:

http://cr.openjdk.java.net/~lancea/8085984/specdiffsjdbc43/

Note you will see the start of a few additional clean-ups as well in the javadocs

Best,
lance


Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com





More information about the jdbc-spec-discuss mailing list