# Check an end delete with one indexed lookup · dara/icarus

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

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

Visibility: public

Requested revision: 455778f0c11eafa302389224df5c7ac8be28dd0d

Requested commit: 455778f0c11eafa302389224df5c7ac8be28dd0d

Commit: 455778f0c11eafa302389224df5c7ac8be28dd0d

Tree: ec262f51845615de961df51738698d5041284165

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Check an end delete with one indexed lookup

Review follow-up: reading every live link on the page per end delete
still re-read their payloads (notes can be large) once per end, which a
batch of many deletes could push past the transaction read limit. Two
additive indexes on a link's page, kind, deleted flag and origin or
landing id let each check read at most one row.

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

```

## Parents

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

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