> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Keep a reactive app efficient

> Declare indexes for real selections and keep transaction work bounded

Keep each watched list bounded. Add a channel field to the messages and
declare the order the list reads, `index: [["channel", "at"]]`. Read recent
messages with
`ctx.list(messages.where({ channel }).by("at").descending().first(50))`,
and page back with `ctx.page(selection, { size, cursor })`. A selection no
index serves is an error that names the index to add. See
[Indexes](https://docs.bijection.com/database/indexes.md) and [Reading](https://docs.bijection.com/database/reading.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.