Create media archive collection #214

Closed
opened 2026-05-21 20:28:38 -04:00 by rainbownapkin · 6 comments

Create mongoose model/mongodb collection to hold all archived media from all channels. Each document should represent a single piece of archived media.

When a user requests information in the archive, it can be searched by a combination of channel name+date.

This small annoyance dealing with the archive will SEVERELY reduce the amount of information kept in each individual channel document, without requiring the much more flexible actively scheduled information to be mixed together into a single, messy collection.

Create mongoose model/mongodb collection to hold all archived media from all channels. Each document should represent a single piece of archived media. When a user requests information in the archive, it can be searched by a combination of channel name+date. This small annoyance dealing with the archive will SEVERELY reduce the amount of information kept in each individual channel document, without requiring the much more flexible actively scheduled information to be mixed together into a single, messy collection.
rainbownapkin added this to the 0.2-Alpha (Durban Poison) milestone 2026-05-21 20:28:38 -04:00
rainbownapkin added the
Cleanup/Refactor
Performance Improvement
labels 2026-05-21 20:28:38 -04:00
rainbownapkin added a new dependency 2026-05-21 20:30:48 -04:00
Author
Owner

Started work on archived media collection: 855343dfc3

Started work on archived media collection: 855343dfc3
Author
Owner

Updated queue to save archived media to site-wide collection: 4dbc5b69cf

Still need to update the following frome the queue.js class:

  1. dumpQueue Debug function - Dumping Archive (:436) - bbb3576a7d
  2. removeMedia function - searching/deleting item from archive (:788-:796) - ae294b3f78 & ee47e1b844
  3. prepQueue - pull last day from archive for network transmission (:1746-:1766) - ae294b3f78
  4. RehydrateQueue - recovering from livestream after server shutdown/crash (:1853-:1880) - 3ca91288d2

After those four changes, we should be done with this feature out side of the work to be done under #217.

Updated queue to save archived media to site-wide collection: 4dbc5b69cf Still need to update the following frome the queue.js class: 1. ~~dumpQueue Debug function - Dumping Archive (:436)~~ - bbb3576a7d 2. ~~removeMedia function - searching/deleting item from archive (:788-:796)~~ - ae294b3f78 & ee47e1b844 3. ~~prepQueue - pull last day from archive for network transmission (:1746-:1766)~~ - ae294b3f78 4. ~~RehydrateQueue - recovering from livestream after server shutdown/crash (:1853-:1880)~~ - 3ca91288d2 After those four changes, we should be done with this feature out side of the work to be done under #217.
rainbownapkin self-assigned this 2026-05-29 08:15:36 -04:00
Author
Owner

Fixed dumpQueue debug function to return data from site-wide archived collection: bbb3576a7d

Fixed dumpQueue debug function to return data from site-wide archived collection: bbb3576a7d
Author
Owner

Updated prepQueue function to pull from site-wide archive collection. Started work on updating removeMedia function: ae294b3f78

Updated prepQueue function to pull from site-wide archive collection. Started work on updating removeMedia function: ae294b3f78
Author
Owner

Updated removeMedia() function to remove archived media from site-wide media archive: ee47e1b844

Updated removeMedia() function to remove archived media from site-wide media archive: ee47e1b844
Author
Owner

Fixed post-crash recovery for actively livestreaming channels: 3ca91288d2

Fixed post-crash recovery for actively livestreaming channels: 3ca91288d2
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
#211 Optimize Scheduler DB
rainbownapkin/canopy
Reference: rainbownapkin/canopy#214
No description provided.