Dataflow creates an execution graph from your pipeline code that reflects your pipeline's PCollections and transforms and then optimizes the chart for the best performance and resource use. Dataflow also optimizes potentially costly procedures like data aggregations automatically.