Answer the question
In order to leave comments, you need to log in
Will there be performance problems if there are ~ 100000 files in the directory (FS - ext4)?
The question arose about organizing storage and access from a web application to a set - about 100,000 small .mp3 files of 3-10 kilobytes each (voicing of words - the user clicks on the button and hears the pronunciation of the word).
The easiest way for me is to throw them all into one folder that the web server serves and send the URL to the necessary file to the frontend. URLs should be stored in the database accordingly. There are other options (store files in the database as binary data, transfer not URLs but binary data at once, do not store 100,000 files in one folder, but split them into several) The file system on the ext4 server.
In general, how best to organize this and what are the pitfalls?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question