pub fn get_unembedded_ids_batch(
conn: &Connection,
limit: usize,
) -> Result<Vec<(String, String, String)>>Expand description
#1579 B6 (F5.6) — bounded variant of get_unembedded_ids.
Returns at most limit (id, title, content) triples so the
caller’s materialisation is bounded by its batch size (the
AI_MEMORY_EMBED_BACKFILL_BATCH resolver semantics) instead of the
whole unembedded backlog. There is deliberately NO OFFSET: rows
that gain an embedding drop out of the embedding IS NULL
predicate, so callers drain by re-fetching until the returned batch
is empty (or stops shrinking — rows whose embedding persistently
fails stay at the head of the scan).