log entries since

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

log entries since v15.0.2

Every entry of a key created or changed after a sequence, the newest version of each, and the ids hard-deleted since: catch-up for a sync client, a worker, or a chat client back online.

In pins 7
  • 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

  • seq number required

    the highest changed sequence the reader has

  • key field value

    the field that holds the key; log_key by default

    Default log_key

  • id field value

    the field that holds the entry's id; id by default

    Default id

  • created field value

    the field that holds the created sequence; created_seq by default

    Default created_seq

  • changed field value

    the field that holds the changed sequence; changed_seq by default

    Default changed_seq

Out pins 4
  • entries array
  • deleted ids array
  • complete condition
  • error value

Read from the hot tail in commit order, so an entry that committed late with an older sequence still reaches a reader who saw a newer one. When the tail no longer reaches back to seq (it keeps a day and 1,000 changes per key), the older part comes from the storage (changed field > seq) and complete is false. A reader keeps the highest changed sequence it has seen and passes it next time. 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