PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 26th of November, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[17:10:07] <mboard> quick question regarding mongodb and nodejs. Previously I did some projects using PHP and MySQL where we would use location for media in the database. I was speaking to somebody today as I want to get into mongodb and node, they told me that they store images directly within the database itself rather than uploading the media into a directory and just using a pointer in the database
[17:10:34] <mboard> So hopefully somebody can clarify, what is normally best practice for storing a large number of media on a mongodb driven web application?
[17:23:05] <d4rkp1r4t3> mongodb working set needs to fit in memory so it depends. if you expect that your working set will fit into memory, great, if it doesnt fit into memory you will see a lot of paging to disk as a result. best bet would be to run benchmarks against both solutions and see which one is better for you.
[17:59:34] <mboard> d4rkp1r4t3, ok thank you. I will need to do some more learning but I will learn as I go.
[18:03:11] <d4rkp1r4t3> no prob. you probably also want to verify the caching behavior of your web app when it's retrieves images from disk or if its even caching anything at all. knowing all of this will help you make a better informed decision. i would also rceommend reading this https://alexmarquardt.com/2017/03/02/trade-offs-to-consider-when-storing-binary-data-in-mongodb/
[18:07:06] <mboard> d4rkp1r4t3, thank you very much for the link. Will read this very shortly.