log heads of a group
This block is part of the data group and was last modified in core v15.0.2.
log heads of a group v15.0.2 Every key's head sequence in a group, in one read: the latest event of each order of a shop, the latest message of each channel of a server.
In pins 2
- storage
valuerequiredthe storage the log's entries are documents of; it names the log
- group
valuerequiredthe group the keys were appended with
Out pins 2
- heads
object - error
value
heads maps key -> created sequence of its newest entry, for the keys appended with that group. Wire it into cursor_lag to learn which keys a member has not caught up on. A sequence is a millisecond stamp from the key's own clock, max(now ms, the key's last + 1), so it is strictly increasing per key in commit order and compares with a cursor (cursor_set, cursor_lag).
Version history
Introduced in v15.0.2.
v15.0.2: block added in this release.
Back to
data Return to the main group to view all sub-groups Back to ordered log Return to the group to view all blocks within this group