# Budget a lineup group's side rows in the trash purge · dara/icarus

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

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

Visibility: public

Requested revision: 132e10d1473dcdb67a5ad8d46d548491cfcb3d08

Requested commit: 132e10d1473dcdb67a5ad8d46d548491cfcb3d08

Commit: 132e10d1473dcdb67a5ad8d46d548491cfcb3d08

Tree: b8fed01a9fd8494dc4c3b8b167d7464b9ee0776e

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Budget a lineup group's side rows in the trash purge

purgeContentRows deleted a lineup group's lineupItems and lineupAgents rows
all at once. A trashed page whose groups hold tens of thousands of them
broke Convex's per-transaction limits on every run, and since the daily
purge always starts from the oldest page, it stopped purging every page
trashed after it, for every user.

The side rows now share the run's budget with reference rows (200), and a
lineup row goes only once both side tables are empty for it; the purge
reschedules itself for the rest, as it already did for references.

```

## Parents

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

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