Skip to content

PB-15775: Add paging to the five growing enumerates - #468

Merged
lalat-das merged 1 commit into
pb-15775-rcbfrom
PB-15775-rcb-enumerate-paging
Oct 31, 2026
Merged

lalat-das merged 1 commit into
pb-15775-rcbfrom
PB-15775-rcb-enumerate-paging

Conversation

@lalat-das

Copy link
Copy Markdown
Collaborator

Every other enumerate in this API embeds EnumerateOptions. The twelve resource-centric ones embedded none, so a caller had no way to ask for a page and the server had no way to return one.

The design's own measurements make that unworkable. At 1,000 namespaces with 10 VMs each:

  • catalogresourceobjects reaches about 13 MB
  • bindingobjects reaches about 23 MB, over the 16 MB client limit
  • recoverypointobjects reaches 7.4 million rows

So ResourceCatalog, PlacementAssignment, Binding, RecoveryPoint and DriftEvent gain enumerate_options.

The other seven are left alone. A Placement Rule, an SLA Policy, a Binding Rule, a Delegation Rule, an Admin Scope and an exclusion reason are bounded by how many an administrator writes, and ProtectionSummary returns counts rather than rows.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional)
Closes #

Special notes for your reviewer:

Every other enumerate in this API embeds EnumerateOptions. The twelve
resource-centric ones embedded none, so a caller had no way to ask for
a page and the server had no way to return one.

The design's own measurements make that unworkable. At 1,000
namespaces with 10 VMs each:

- catalogresourceobjects reaches about 13 MB
- bindingobjects reaches about 23 MB, over the 16 MB client limit
- recoverypointobjects reaches 7.4 million rows

So ResourceCatalog, PlacementAssignment, Binding, RecoveryPoint and
DriftEvent gain enumerate_options.

The other seven are left alone. A Placement Rule, an SLA Policy, a
Binding Rule, a Delegation Rule, an Admin Scope and an exclusion
reason are bounded by how many an administrator writes, and
ProtectionSummary returns counts rather than rows.
@lalat-das
lalat-das merged commit 28aff04 into pb-15775-rcb Oct 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant