You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Eugene Kirpichov (JIRA)" <ji...@apache.org> on 2017/07/27 22:27:00 UTC

[jira] [Commented] (BEAM-2641) Improve discoverability of TextIO.readAll() as a replacement of TextIO.read() for large globs

    [ https://issues.apache.org/jira/browse/BEAM-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16104019#comment-16104019 ] 

Eugene Kirpichov commented on BEAM-2641:
----------------------------------------

The PR https://github.com/apache/beam/pull/3639 introduces a hint TextIO/AvroIO.read().withHintMatchesManyFiles() and documents it at the class level. I'm going to post something on StackOverflow to that effect.

> Improve discoverability of TextIO.readAll() as a replacement of TextIO.read() for large globs
> ---------------------------------------------------------------------------------------------
>
>                 Key: BEAM-2641
>                 URL: https://issues.apache.org/jira/browse/BEAM-2641
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Eugene Kirpichov
>            Assignee: Eugene Kirpichov
>             Fix For: 2.2.0
>
>
> TextIO.readAll() dramatically outperforms TextIO.read() when reading very large numbers of files (hundreds of thousands or millions or more).
> However, it is not obvious that this is what you should use if you have such a filepattern in TextIO.read().
> We should take a variety of measures to make it more discoverable, e.g.:
> * Add a parameter to TextIO.read(), like "withHintManyFiles()"
> * Log something suggesting the use of that hint when splitting TextIO if the filepattern is very large
> * Improve documentation
> * Post something on StackOverflow about this



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)