log head

This block is part of the data group and was last modified in core v15.0.2.

log head v15.0.2

The newest entry of a key: its created sequence and id. An order's latest event, a channel's latest message.

In pins 2
  • storage value required

    the storage the log's entries are documents of; it names the log

  • key value required

    the log within the storage: an order, an account, a channel

Out pins 3
  • seq number
  • id value
  • error value

seq is 0 and id empty for a key with no entry in the log. The head only moves forward, except when a hard delete removes it. 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