Service - Feed Chunk
Revision as of 08:51, 27 July 2025 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = An uploaded section of a video feed. = Repository = https://bitbucket.org/izara-video-feed/izara-video-feed-feeds-feed-chunk = objectSchemas = <syntaxhighlight lang="JavaScript"> { objectType: "feedChunk", belongTo: { serviceTag: "user", objectType: "user" }, storageResources:{ "xxx":{ storageType: "graph", graphServerTag: "xx", } }, fieldNames: { feedChunkId: { type: "string", randomOnCreate: true }, sourceT...")
Overview
An uploaded section of a video feed.
Repository
https://bitbucket.org/izara-video-feed/izara-video-feed-feeds-feed-chunk
objectSchemas
{
objectType: "feedChunk",
belongTo: {
serviceTag: "user",
objectType: "user"
},
storageResources:{
"xxx":{
storageType: "graph",
graphServerTag: "xx",
}
},
fieldNames: {
feedChunkId: {
type: "string",
randomOnCreate: true
},
sourceTimeStart: {
type: "timestamp",
},
sourceTimeEnd: {
type: "timestamp",
},
timeUploaded: {
type: "timestamp",
},
},
identifiers: [
{
fieldName: "feedChunkId"
},
]
},
{
objectType: "feedChunkByTime",
storageResources:{
"xxx":{
storageType: "dynamoDB",
tableName: "feedChunkByTime",
}
},
fieldNames: {
videoFeedId: {
fromObjType:{
serviceTag: "videoFeed",
objectType: "videoFeed",
}
},
sourceTimeStart: {
fromObjType:{
serviceTag: "feedChunk",
objectType: "feedChunk",
}
},
feedChunkId: {
fromObjType:{
serviceTag: "feedChunk",
objectType: "feedChunk",
}
},
sourceTimeEnd: {
fromObjType:{
serviceTag: "feedChunk",
objectType: "feedChunk",
}
},
},
identifiers: [
{
type: "partitionKey",
fieldName: "videoFeedId"
},
{
type: "sortKey",
fieldName: "sourceTimeStart"
},
]
},
- used to find chunk for a specific timestamp
- can create from feedChunk objType?