Skip to content

Commit

Permalink
Simplify JDBC code sample
Browse files Browse the repository at this point in the history
Summary of changes:

- Update 'Build a Java App with CockroachDB' to use:
  - the Java DAO pattern
  - JDBC
  - code for automatically retrying in case of txn retry errors
  - an example of fast bulk insertion using JDBC batching

- Add a 'Recommended Practices' section that includes information about
  IMPORT, recommended batch size, and the JDBC INSERT rewriting flag

Does all of the above for versions 19.1 and 19.2.

Fixes #4621, #3578, #4399.
  • Loading branch information
rmloveland committed Jun 24, 2019
1 parent 2c386c1 commit 13c50fa
Show file tree
Hide file tree
Showing 12 changed files with 2,049 additions and 375 deletions.
440 changes: 440 additions & 0 deletions _includes/v19.1/app/BasicExample.java

Large diffs are not rendered by default.

55 changes: 0 additions & 55 deletions _includes/v19.1/app/BasicSample.java

This file was deleted.

Loading

0 comments on commit 13c50fa

Please sign in to comment.