package optimize
- Alphabetic
- By Inheritance
- optimize
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
A Workflow is a graph of atomic operations, with WorkflowOps for the vertices.
A Workflow is a graph of atomic operations, with WorkflowOps for the
vertices. We crush them down into a WorkflowTask. This crush gives us a
location to optimize our workflow decisions. EG, A sequence of simple ops
may be combined into a single pipeline request, but if one of those
operations contains JS, we have to execute that outside of a pipeline,
possibly reordering the other operations to avoid having two pipelines with
a JS operation in the middle.
We also implement the optimizations atomic http://docs.mongodb.org/manual/core/aggregation-pipeline-optimization/ so that we can build others potentially on top of them (including reordering non-pipelines around pipelines, etc.).