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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -