beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BEAM-3247) Sample.any memory constraint
Date Tue, 28 Nov 2017 23:17:00 GMT


ASF GitHub Bot commented on BEAM-3247:

jkff commented on issue #4175: [BEAM-3247] fix Sample.any performance
   OK I found the issue and I'm gonna fix it myself and merge.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Sample.any memory constraint
> ----------------------------
>                 Key: BEAM-3247
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>    Affects Versions: 2.1.0
>            Reporter: Neville Li
>            Assignee: Neville Li
>            Priority: Minor
> Right now {{Sample.any}} converts the collection to an iterable view and take first n
in a side input. This may require materializing the entire collection to disk and is potentially
> It can be fixed by applying a truncating `DoFn` first, then a combine into `List<T>`
which limits the list size, and finally flattening the list.

This message was sent by Atlassian JIRA

View raw message