Background
gh-cached currently stores cached GitHub issues and pull requests as JSON/YAML/markdown files on disk. While this works well for small repositories, performance degrades when caching repositories with hundreds or thousands of issues and PRs, since common operations (listing, searching, filtering) require reading and parsing many individual files.
A local SQLite database would provide significantly better performance for these workloads:
- Indexed lookups by issue/PR number, state, author, labels, etc.
- Efficient full-text or LIKE-based search across titles and bodies.
- Single-file storage that is still portable and inspectable.
- Lower I/O overhead than walking a directory of small files.
The goal is to introduce a SQLite-backed storage option for cached issues and PRs as an alternative (and eventually default) to the file-based backend.
Version
c263ac9
Acceptance Criteria
Created with create-issue (3004eed)
Background
gh-cached currently stores cached GitHub issues and pull requests as JSON/YAML/markdown files on disk. While this works well for small repositories, performance degrades when caching repositories with hundreds or thousands of issues and PRs, since common operations (listing, searching, filtering) require reading and parsing many individual files.
A local SQLite database would provide significantly better performance for these workloads:
The goal is to introduce a SQLite-backed storage option for cached issues and PRs as an alternative (and eventually default) to the file-based backend.
Version
c263ac9
Acceptance Criteria
Created with create-issue (
3004eed)