What do you think of this paragraph? Store your audio files as regular audio files in a…
- User
What do you think of this paragraph?
Store your audio files as regular audio files in a server file system and put a controller in front to secure them and you're good to go. If you're hellbent on storing the files in a database, bee prepared for all kinds of trouble. Databases are rarely optimized to handle blobs in the range of 4–5 MB, even less so if you want to serve this to your visitors. Relational databases have a
BLOBdata type, and this is suitable for storing large binary files. Some recommend storing audio files in plain files, maybe on the same server as your database, but not in the database. Then store a string which is the filenames. Your application would read a database entry that names an audio file, then open the file if it needs to copy or play the audio. The database then stores metadata about the audio file, such as its title, duration, and any other relevant information. This approach allows for efficient querying and retrieval of audio file metadata while offloading the storage and retrieval of the actual audio data to a file system or cloud storage service. some poorly written queries that useSELECT *instead of correctly naming columns, as the caller might not expect a bunch of binary data in their response, makes things worse
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.