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

Delete num of associations for streaming outer join

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Table SQL / Runtime
    • None

    Description

      Currently in StreamingJoinOperator (non-window) in case of OUTER JOIN the OuterJoinRecordStateView is used to store additional field - the number of associations for every record. This leads to store additional Tuple2 and Integer data for every record in outer state.

      This functionality is used only for sending:

      • -D[nullPaddingRecord] in case of first Accumulate record
      • +I[nullPaddingRecord] in case of last Revoke record

      The overhead of storing additional data and updating the counter for associations can be avoided by checking the input state for these events.

       

      The proposed solution can be found here - https://github.com/rovboyko/flink/commit/1ca2f5bdfc2d44b99d180abb6a4dda123e49d423

       

      According to the nexmark q20 test (changed to OUTER JOIN) it could increase the performance up to 20%:

      • Before:

      • After:

      Attachments

        1. image-2024-03-15-19-51-29-282.png
          19 kB
          Roman Boyko
        2. image-2024-03-15-19-52-24-391.png
          19 kB
          Roman Boyko
        3. image-2024-04-15-15-45-51-027.png
          48 kB
          Roman Boyko
        4. image-2024-04-15-15-46-17-671.png
          46 kB
          Roman Boyko
        5. image-2024-04-15-19-14-14-735.png
          92 kB
          Roman Boyko
        6. image-2024-04-15-19-14-41-909.png
          92 kB
          Roman Boyko
        7. image-2024-04-15-19-15-23-010.png
          69 kB
          Roman Boyko
        8. image-2024-04-26-16-55-19-800.png
          42 kB
          Roman Boyko
        9. image-2024-04-26-16-55-56-994.png
          41 kB
          Roman Boyko

        Activity

          People

            Unassigned Unassigned
            rovboyko Roman Boyko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: