graflo.hq.sync.hash¶
The sync hash: a digest of what one owner record wrote.
It covers the owner vertex's folded properties, except the fields set by sync, and every edge the owner owns: the edge's type, both endpoint keys and its properties. Two runs that fold the same records compute the same hash, so a sync can skip a record a bulk load or an earlier sync already wrote.
Functions:¶
sync_hash(doc, edges, skip=())
¶
The hash of an owner vertex doc and its owned edges.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
doc
|
Mapping[str, Any]
|
The owner vertex's folded document, logical names. |
required |
edges
|
Iterable[Mapping[str, Any]]
|
Its owned edges, each |
required |
skip
|
Collection[str]
|
Fields of doc left out: the ones set by sync. |
()
|