log entries before

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

log entries before v15.0.2

Entries of a key created before a sequence, oldest first: paging back through an order's history or a channel's messages.

In pins 8
  • 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 created sequence to page back from (exclusive)

  • limit number

    50 by default

  • 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 2
  • entries array
  • error value

From the cache while it reaches, then from the storage (created field < seq, newest first, then put oldest first). Pass the created sequence of the oldest entry already shown. limit is 50 by default. 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