Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12204

Portable Java caches entirety of iterable side inputs.

Details

    • Bug
    • Status: Triage Needed
    • P2
    • Resolution: Fixed
    • None
    • 2.30.0
    • java-fn-execution
    • None

    Description

      Though the data is read over the state channel in a paginated way, it is wrapped in LazyCachingIteratorToIterable which forces the entire iterable to be cached. On the other hand, not caching at all for re-iteration could be expensive. We should do what Python does and cache a bit (e.g. the first page) and still support re-iteration by re-requesting the data over the state channel.

      Attachments

        Issue Links

          Activity

            People

              robertwb Robert Bradshaw
              robertwb Robert Bradshaw
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m