Skip to content

Speed up ucode setup and ucode apply - #320

Merged
AarushiShah-db merged 2 commits into
mainfrom
AarushiShah-db/scope-model-services-listing
Aug 12, 2026
Merged

Speed up ucode setup and ucode apply #320
AarushiShah-db merged 2 commits into
mainfrom
AarushiShah-db/scope-model-services-listing

Conversation

@AarushiShah-db

Copy link
Copy Markdown
Collaborator

list_model_services walked the entire metastore (hundreds of services across ~23 sequential ~2s pages, ~50s on a busy workspace) only to keep the system.ai.* subset client-side. Passing parent=schemas/system.ai scopes it server-side: same 53 ids come back in a single ~1s page.

This backs both ucode setup ("Fetching available models") and ucode apply (manifest validation), so both drop from ~50s to ~1s.

Co-authored-by: Isaac

list_model_services walked the entire metastore (hundreds of services
across ~23 sequential ~2s pages, ~50s on a busy workspace) only to keep
the system.ai.* subset client-side. Passing parent=schemas/system.ai
scopes it server-side: same 53 ids come back in a single ~1s page.

This backs both ucode setup ("Fetching available models") and ucode
apply (manifest validation), so both drop from ~50s to ~1s.

Co-authored-by: Isaac
@AarushiShah-db
AarushiShah-db requested a review from tt-le August 12, 2026 18:52
@AarushiShah-db
AarushiShah-db enabled auto-merge (squash) August 12, 2026 21:22
@AarushiShah-db
AarushiShah-db merged commit adedcb1 into main Aug 12, 2026
2 checks passed
@AarushiShah-db
AarushiShah-db deleted the AarushiShah-db/scope-model-services-listing branch August 12, 2026 21:28
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.

2 participants