Details
-
Improvement
-
Status: Resolved
-
P3
-
Resolution: Won't Fix
-
2.3.0
Description
The current JdbcIO write interface expects a PCollection<T> where T is the row to be written. Each instance of T is then added to a batch and written to the database. The user has little control over how many rows will be added to one batch. If JdbcIO would also support writing a PCollection<Iterable<T>> the user would have more control over the number of rows in one batch. Especially when writing to cloud databases, such as Google Cloud Spanner, the batching of multiple rows together is important for performance.
I already have a solution locally and I will submit a pull request.
Attachments
Issue Links
- links to