There will be multiple Collection instances for the same collection, representing different views of the Collection state. The CollectionQueryInfo contains state that should be versioned and state that should not (like statistics).
CollectionQueryInfo‘s PlanCache and UpdateIndexData index paths will be versioned and remain as a decoration on instances of Collection.
CollectionQueryInfo‘s QuerySettings and CollectionIndexUsageTracker will remain constant for all views of a collection. They will decorate the Collection class' new shared decorable object, intended to share state across Collection instances.
- depends on
-
SERVER-47886 Make Collection contain a Decorable in addition to deriving from one
- Closed