fliter and flatMap operation VS only a flatMap operation

Posted by Soheil Pourbafrani on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/fliter-and-flatMap-operation-VS-only-a-flatMap-operation-tp32474.html

Hi,

In case we need to filter operation followed by a transformation, which one is more efficient in Flink, applying the filter operation first and then a flatMap operation separately OR using only a flatMap operation that internally includes the filter logic, too?

best
Soheil