I have 10W video files, more than 100MB, with basically the same naming format, and they are placed on a hard drive (a few T or more).
I want to make a download service and throw it away at home. I originally wanted to use Php Mysql to traverse and write the paths into the database one by one.
But after several attempts, it took too long and the machine hung up.
After searching for a long time, I suddenly remembered Mongodb. I have only heard of it but never used it.
So I would like to ask, can I hang the hard drive of these videos (and some music files) on the server, and directly let MongoDb read the hard drive and output the query data?
MongoDB has this kind of gameplay? .....
Have you ever used Everything? It comes with httpFileServer+ search function, it’s awesome
Also, I’m very curious about what video you got for adding 100,000 yuan
The key to storing videos on the server is not how to save or read them, but how to play them. No one wants to slowly download several gigabytes of videos to play on the local machine, so you should build a streaming media server, okay The streaming media server has a good retrieval system.
Use MySQL to save the path and name of the file, and add an index.
Php+MySQL can completely do it.
Access is the browser access path to download.