PersistPayload class

Preprocesses the resolved persistence keys across the batch of documents, eliminating conflicts.

Ex. If an update to users__1__friends__1 which resolves to persistence key "users" at resolver path "users" is followed by a subsequent update to users__1 that changes the persistence key at resolver path "users" to "other_users", then the previous update to users__1__friends__1 would have an inaccurate persistence key.

By preprocessing the updates into a single resolver, it prevents staleness and also optimizes the payload size by not duplicating the passing of keys.

Constructors

PersistPayload(List<Document> docs)

Properties

hashCode int
The hash code for this object.
no setterinherited
persistenceDocs List<PersistenceDocument>
The list of updated documents to persist.
final
resolver ValueStore<String>
A local persistence key resolver derived from the set of updated documents.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited