# Read each page's links once per batch for end deletes · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/587bb40343f68be230f4cbabb2dafa7314069537)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 587bb40343f68be230f4cbabb2dafa7314069537

Requested commit: 587bb40343f68be230f4cbabb2dafa7314069537

Commit: 587bb40343f68be230f4cbabb2dafa7314069537

Tree: 8f79164e4b770c7bdd2cf504b999eabcc2734def

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Read each page's links once per batch for end deletes

Review follow-up: the nested-path indexes went through payload.data, a
record, which Convex's schema check rejects, and a lookup still read the
whole link row once per end. Back to the live-links index: a batch reads a
page's live links once, keeps only their origin and landing ids, and
follows its own accepted link adds, patches and deletes. Reads per batch
are at most one page's live links per page, which the page snapshot query
already reads in one go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [455778f0c11eafa302389224df5c7ac8be28dd0d](https://git.cafe/dara/icarus/commit/455778f0c11eafa302389224df5c7ac8be28dd0d?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/587bb40343f68be230f4cbabb2dafa7314069537?format=markdown)
