Files
orbit/planning/bnbr1-cache-channel-indexes-for-fast-search.md
T
nandiandClaude Opus 5.5 47a80fad04
Rolling Release / build (push) Successful in 1m46s
Rolling Release / publish (push) Successful in 9s
Cache channel listings for search
Search keeps each channel's list for an hour, so a repeat needs no
network, and uses the old copy with a warning if the registry fails.
`--refresh` skips the cache; publish, index, login and logout drop it.

A test command no longer writes to stdout, where it could corrupt the
test runner's results.

Planning: bnbr1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 05:04:06 -08:00

21 lines
819 B
Markdown

---
data:
priority: normal
status: done
tags:
- search
type: feature
id: bnbr1
title: Cache channel indexes for fast search
---
`orbit search` reads every channel over the network each time (about 8 s for two channels).
Acceptance criteria:
- A repeated search of the configured channels needs no network, for channels with an index and for small ones listed from the catalog.
- A copy older than an hour is fetched again; if that fails, it is used with a warning.
- `orbit search --refresh` skips the cache. Publishing, indexing, login and logout drop it.
- Installs and version lookups still never read it.
Outcome: copies live in `<root>/cache/indexes/` (`src/main/index_cache.mbt`). A repeated search takes 3 ms instead of about 12 s. Channels with over 100 repositories and no index are not cached.