beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikas Kedigehalli (JIRA)" <>
Subject [jira] [Commented] (BEAM-991) DatastoreIO Write should flush early for large batches
Date Sat, 19 Nov 2016 17:51:58 GMT


Vikas Kedigehalli commented on BEAM-991:

Joshua, all good solutions. 

I would prefer 3rd one, using 'getSerializedSize' to measure the approximate byte size and
flush when it reaches ~10MB (

Computing getSerializedSize shouldn't be problem because that value is memoized by protobuf
and protobuf will anyway compute that later for serializing, so we shouldn't hit any additional
performance penalty. 

PS: If you more than welcome to submit a Pull Request to Apache Beam if you are interested
to contribute. :)

> DatastoreIO Write should flush early for large batches
> ------------------------------------------------------
>                 Key: BEAM-991
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-gcp
>            Reporter: Vikas Kedigehalli
>            Assignee: Vikas Kedigehalli
> If entities are large (avg size > 20KB) then the a single batched write (500 entities)
would exceed the Datastore size limit of a single request (10MB) from
> First reported in:

This message was sent by Atlassian JIRA

View raw message