Skip to content

perf(db): index expiry, recency and chunk lookup columns - #551

Merged
vastsa merged 1 commit into
vastsa:masterfrom
jcbl1:upstream/04-db-indexes
Oct 25, 2026
Merged

vastsa merged 1 commit into
vastsa:masterfrom
jcbl1:upstream/04-db-indexes

Conversation

@jcbl1

@jcbl1 jcbl1 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Migration 008 adds:

  • filecodes(expired_at) for expiry scans and admin expiry stats
  • filecodes(created_at) for the default recency ordering and today/yesterday counters
  • uploadchunk(upload_id, chunk_index) for chunk status checks and merges; its prefix also covers upload_id-only deletes (previously unindexed)

Models mirror the same metadata for the generate_schemas test path. Upgrade benchmark: 50k filecodes + 20k chunks -> 30ms index build; scans become index searches.

Refs NOTES batch 4.

Migration 008 adds:
- filecodes(expired_at) for expiry scans and admin expiry stats
- filecodes(created_at) for the default recency ordering and today/yesterday
  counters
- uploadchunk(upload_id, chunk_index) for chunk status checks and merges;
  its prefix also covers upload_id-only deletes (previously unindexed)

Models mirror the same metadata for the generate_schemas test path.
Upgrade benchmark: 50k filecodes + 20k chunks -> 30ms index build; scans
become index searches.

Refs NOTES batch 4.
@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown

@jcbl1 is attempting to deploy a commit to the vastsa's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vastsa
vastsa merged commit a578fc6 into vastsa:master Oct 25, 2026
1 check failed
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