oxidecomputer / oxidecomputer/omicron

Consider pagination strategy for switch_ports_with_uplinks

Open
#3,592 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

networking
Dominant language
Rust
Stars
572
Forks
97
Avg merge
2d 12h
Merged PRs (30d)
96

Description

https://github.com/oxidecomputer/omicron/blob/973bff16f09d0bf9fca03641053c8ebd88c46b72/nexus/db-queries/src/db/datastore/switch_port.rs#L1117-L1120

Currently we have the db query limited to 64 rows, since there are only 64 ports in a single rack deployment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with nexus/db-queries/src/db/datastore/switch_port.rs around lines 1117-1120 and inspect the query's current 64-row limit. Determine how pagination should work beyond the single-rack assumption; the work is done when a concrete pagination strategy is agreed and reflected in the query design.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.