elonen / elonen/clapshot

Scalability: Split `videos/<mediaid>` into `videos/<prefix>/<mediaid>` for more scalable storage on disk

Open
#109 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
267
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Idea: To make this backwards compatible, store mediaid as `.` in database for files that are store in the new two-level hierarchy.

(`prefix` would be two first characters of the rest of the `mediaid`)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the code that persists mediaid values and maps them to videos/ paths, then trace how existing media is read from disk and the database. Done means new files use the two-level prefix/mediaid hierarchy while existing records and files remain readable through the proposed backwards-compatible representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.