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.
- storage
valuerequiredthe storage the log's entries are documents of; it names the log
- key
valuerequiredthe log within the storage: an order, an account, a channel
- seq
numberrequiredthe highest changed sequence the reader has
- key field
valuethe field that holds the key; log_key by default
- id field
valuethe field that holds the entry's id; id by default
- created field
valuethe field that holds the created sequence; created_seq by default
- changed field
valuethe field that holds the changed sequence; changed_seq by default
- 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