Skip to content

perf(storage): optimize user-scoped listing queries - #413

Merged
orangecoding merged 1 commit into
orangecoding:masterfrom
weypro:perf/optimize-user-scoped-listing-queries
Aug 12, 2026
Merged

perf(storage): optimize user-scoped listing queries#413
orangecoding merged 1 commit into
orangecoding:masterfrom
weypro:perf/optimize-user-scoped-listing-queries

Conversation

@weypro

@weypro weypro commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Resolve accessible job IDs before broad listing reads so SQLite can use the existing (job_id, hash) index instead of scanning every listing and evaluating json_each for each row.

Use a job-correlated access check for single-listing lookups, preserving primary-key performance while keeping owner access, shared-job access, and the administrator bypass unchanged.

Resolve accessible job IDs before broad listing reads so SQLite can use the existing (job_id, hash) index instead of scanning every listing and evaluating json_each for each row.

Use a job-correlated access check for single-listing lookups, preserving primary-key performance while keeping owner access, shared-job access, and the administrator bypass unchanged.
@orangecoding
orangecoding merged commit 0ef3b9a into orangecoding:master Aug 12, 2026
2 checks passed
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