Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7799

Improve performance of windowed joins

    XMLWordPrintableJSON

Details

    Description

      The performance of windowed joins can be improved by changing the state access patterns.
      Right now, rows are inserted into a MapState with their timestamp as key. Since we use a time resolution of 1ms, this means that the full key space of the state must be iterated and many map entries must be accessed when joining or evicting rows.

      A better strategy would be to block the time into larger intervals and register the rows in their respective interval. Another benefit would be that we can directly access the state entries because we know exactly which timestamps to look up. Hence, we can limit the state access to the relevant section during joining and state eviction.

      The good size for intervals needs to be identified and might depend on the size of the window.

      Attachments

        Activity

          People

            xccui Xingcan Cui
            fhueske Fabian Hueske
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: