win845 commented on issue #33268:
URL: https://github.com/apache/beam/issues/33268#issuecomment-2514512912
While the implementation may take a while. What is a current strategy to
deal with a sequentially emiting source as linked above? Bigqueryio is reading
records in loop and emiting them sequentially without also implementing a
progress method.
This leads to pipelines on dataflow never being autoscaled .
Can something be done in subsequent step to make the subsequent processing
being redistributed to multipe workers.
Example Code:
```
bigqueryRows := bigqueryio.Query(scope, config.Project, itemOptionsQuery,
reflect.TypeOf(ItemOptionRow{}),
bigqueryio.UseStandardSQL())
mutations := beam.ParDo(scope, func(bigqueryRow ItemRow, emit
func(bigtableio.Mutation)) {
rowKey := bigqueryRow.Id
mutation := bigtableio.NewMutation(rowKey)
// ...
emit(*mutation)
}, bigqueryRows)
```
Can bigqueryRows here be somehow consumed in chunks which are distributed on
multiple workers for further transform?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]