oxidecomputer / oxidecomputer/omicron
Consider pagination strategy for switch_ports_with_uplinks
Open
Nobody has claimed this yet.
networking
- Dominant language
- Rust
- Stars
- 572
- Forks
- 97
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 96
Description
Currently we have the db query limited to 64 rows, since there are only 64 ports in a single rack deployment.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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