Re: AllWindowed vs Windowed with 1 key
Posted by
Stefan Richter on
May 09, 2017; 11:41am
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/AllWindowed-vs-Windowed-with-1-key-tp13039p13079.html
That is interesting, because already in Flink 1.1.x, windowAll() is implemented as input.keyBy(new DummyKeySelector()).window(). Are you using event time or processing or event time, and most important, do the execution graphs in the web frontend look different in both variants?
Hi,
Thanks for the reply. So I have 2 cases:
1. timeWindowAll (length, slide).reduce (...) (with parallelism = 1)
2. groupby(someField).timeWindow(length, slide). reduce(...)
Lets say case-1 global window, case-2 partitioned window. If I have only one key (for case-2) and I set parallelism=1 for case-1, I would expect that both cases have similar performance both in terms of latency and throughput. However, partitioned windows outperform global ones by orders of magnitude in terms of throughput.
I am using Flink 1.1.3.