Jump to content
  • 0

Unnecessary VoD records


Pavel Tsukanov
 Share

Question

We have a cluster. Our application saves video as mp4 file and moves their  to a S3 bucket. The MP4 file are deleted automatically. It works fine, but VoD Page contains a lot of records of the MP4 files. I can't play, download files and etc. I just can remove a single file. I.e. number of files will be grow and it may be a problem in future. My screenshot is from our beta version without users and we have about 2600 records. I think we will have millions records here after year. As I understand these records are stored in MongoDB. MongoDB works fine with collections with millions records if they have correct indexes and I am not sure that you have it.  Anyway I do not see any reason to see these records here and there is no a bulk option to delete all these records

 

 

VoD.thumb.png.5d18b729b58b37597146148d2cce8f4a.png

Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0

Really sorry for the delay here, I was expecting a comprehensive solution here but it looks like it is going to take some time. 

Here is a workaround solution that you can do: You can write a script, bash or python, that gets vods from REST as group of 50 and send delete request to REST per vod in the request then request 50 again until you don't get 50 vods which means you reached end of the vods and you can delete the last part of the fetched vods then delete.
Simply you will have 1 while loop and 1 for loop, you will iterate the while loop until you don't get 50 vods and you will iterate the for loop for sending delete request of fetched vods.

Best Regards,
Enes.

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...