Enum DerivationState
The state of the IDerivation instance.
Namespace: Cortex.Net
Assembly: Cortex.Net.dll
Syntax
public enum DerivationState : int
Fields
Name | Description |
---|---|
NotTracking | Before being run or (outside batch and not being observed). at this point derivation is not holding any data about dependency tree |
PossiblyStale | Some deep dependency has changed, but we don't know if a shallow dependency has changed. This will require to check first if this derivation is UpToDate or PossiblyStale. Currently only ComputedValue will propagate PossiblyStale. Having this state is the second big optimization: We don't have to recompute on every dependency change, but only when it's necessary. |
Stale | A shallow dependency has changed since last computation and the derivation will need to recompute when it's necessary next. |
UpToDate | No shallow dependency changed since last computation. We won't recalculate the derivation. This is what makes Cortex.Net fast. |