Skip to main content

list_entry_ids

Function list_entry_ids 

Source
pub async fn list_entry_ids(
    pool: &SqlitePool,
    did: &str,
    view: ListView,
    feed_ids: Option<&[i64]>,
    limit: i64,
) -> Result<Vec<i64>>
Expand description

The ordered entry ids for a scope + view — the same ordering list_entries renders, used for the reader’s prev/next links.

Ids only: this one genuinely spans the whole list rather than a page (prev/next needs the reader’s position in it), so it is the one query where row COUNT can still be large. An id is 8 bytes against the 11.9 KB row this used to fetch, and limit bounds it regardless. Past the limit, prev/next simply stops finding neighbours — the article still opens.