Answer the question
In order to leave comments, you need to log in
How to add large text to Mongo base?
Hi, let's say I want to make an article model. I will add title: String, url: String there, but what to do with the text from the article itself? String can't store that much text, and I couldn't find anything else. The idea of keeping everything in a separate file seems absurd. How to proceed?
Answer the question
In order to leave comments, you need to log in
if the architecture allows, you can store the json in gzip-compressed form and give it to the client without unpacking it. the most optimal option of all - saves both disk I / O, and network, and cache space.
if it doesn’t allow, and still doesn’t fit, then you can push it into mongofs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question