Skip to content

Commit

Permalink
Add notes
Browse files Browse the repository at this point in the history
Note on date format support and performance issues with SQL Insert
  • Loading branch information
cvitter committed Jan 11, 2017
1 parent ffc3dc6 commit 789d1e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions riakts.jdbc.driver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ if (rs != null) {
rs.close();;
```

**Note**: The Riak TS timestamp data type uses the Unix epoch but you can write and query dates in SQL use the ISO 8061 date format as illustrated in the example above and below.

See the following documentation for more information on querying Riak TS with SQL: http://docs.basho.com/riak/ts/latest/using/querying/

Currently the Riak TS JDBC driver only implements a small subset of the functionality typically found in a fully featured driver. When reading from a ResultSet the following operations are supported:
Expand Down Expand Up @@ -91,6 +93,8 @@ int result = statement.executeUpdate(sqlStatement);
Assert.assertTrue(result == 0);
```

**Important Note**: Inserting data into Riak TS is not as fast as using native methods supported by the Riak Java Client (https://github.com/basho/riak-java-client) directly to insert data.

# Riak TS to JDBC Data Types
When writing data from the Riak TS QueryResult object to the JDBC ResultSet object the driver converts Riak TS's data types using the following mapping:

Expand Down

0 comments on commit 789d1e6

Please sign in to comment.