mysql - PHP move existing files on the server to database -
i have huge number of files existing on server , want move them mysql instead. best way in terms of performance mentioned number of files pretty big . , if there 3rd party script existing that.
you should never store files in mysql. keep files in folder, , put paths files in database.
the reason why shouldn't it, because filesystem optimized 1 thing.. storing files, you'll have way more performance storing files on disk compared database. sure database have lot of data in memory, since mysql tries put in memory if can.
but filesystem same. accessed files end in memory save io on disk itself, can read more file system cache , virtfs.
Comments
Post a Comment