////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
////

[[SizeMetters]]
:imagesdir: ../../assets/images

Keep the number of actions in your workflows and transforms in your pipelines within reason.

* Larger pipelines or workflows become harder to debug and develop against.
* For every transform you add to a pipeline you start at least one new thread at runtime.
You could be slowing down significantly simply by having hundreds of threads for hundreds of transforms.

If you find that you need to split up a pipeline you can write intermediate data to a temporary file using the xref:pipeline/transforms/serialize-to-file.adoc[Serialize to file] transform.
The next pipeline in a workflow can then pick up the data again with the xref:pipeline/transforms/serialize-de-from-file.adoc[De-serialize from file] transform.
While obviously you can also use a database or use another file type to do the same, these transforms will perform the fastest.
