Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write RFC for managing Asset/DeliveryChannel metadata #767

Closed
donaldgray opened this issue Mar 19, 2024 · 1 comment · Fixed by #779
Closed

Write RFC for managing Asset/DeliveryChannel metadata #767

donaldgray opened this issue Mar 19, 2024 · 1 comment · Fixed by #779
Assignees
Labels
💬 Discussion jira marks issue for crossposting to JIRA sustainability

Comments

@donaldgray
Copy link
Member

Ticket #631 requires accessing thumbnail sizes in bulk. This would involve making bulk requests to S3 to read the data which would be inefficient at scale.

To counter this we need to investigate a way of storing metadata for Asset/DeliveryChannel in the database. Initially this will be storing available thumbnail sizes but could be extended in the future to store:

  • Thumbnails: generated sizes - both system and requested thumbs. Open and Auth thumbs are currently in json in S3. Would we want to store in S3 and database, or just database? Store open and auth?
    • Should OrchestrationAsset read from DB rather than S3 (saves an S3 GET request).
  • Timebased: Generated transcode types and output locations.
  • File: do we store a copy of the original file? If so, where.
  • Image: do we store a copy of the file. Is it original (use-original) or a transcode?
  • Adjuncts: what is stored where (future).

All of the above can be calculated from ImageDeliveryChannels + Engine processing but this can act as an easy lookup to those values. The above metadata would also help with:

Questions:

  • Assuming this is in a separate table, what is that called? AssetMetadata or DeliveryChannelMetadata (if we store adjunct data is this classifiable as DC related?
  • How is the data modelled - column per data type (File, Image, Thumbs) or a JSON blob?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 Discussion jira marks issue for crossposting to JIRA sustainability
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant