versioned_collection.collection.tracking_collections.replica module¶
- class versioned_collection.collection.tracking_collections.replica.ReplicaCollection(*args: Any, **kwargs: Any)[source]¶
Bases:
_BaseTrackerCollectionA snapshot of the latest tracked version of the target collection.
When the target collection is initialised for versioning, or when changes to a previous version of the target collection are tried to be made, i.e., when branching explicitly or implicitly from a previous checked-out version, this collection will replicate the state of the target collection.
The main purpose of a ReplicaCollection is to allow the user to efficiently perform queries to a tracked collection without any performance overhead, allowing to compute the deltas between the latest tracked version and the modified version of the target collection when a new version of it is registered.