trq_set_first_rowid()

trq_set_first_rowid()#

trq_set_first_rowid() sets the starting row ID for iterating over messages in the queue, optimizing retrieval performance.

Prototype

void trq_set_first_rowid(
    tr_queue  trq,
    uint64_t  first_rowid
);

Parameters

Key

Type

Description

trq

tr_queue

The queue instance to modify.

first_rowid

uint64_t

The row ID from which message iteration should begin.


Return Value

This function does not return a value.

Notes

Setting a lower first_rowid can improve performance when iterating over messages using trq_load() or trq_load_all().

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples