Hello,
I am curious if the community has any feedback here. I am new to mongo, with little to no experience with SQL. So a bit of guidance here would definitely help me tremendously.
I have been looking for more information about the best way to store a fair amount of text as a string in a document. Let’s say that a user simply enters a string of text that could be 10 paragraphs in length. So, like a 10KB string.
First of all, would this be OK to do in Mongo? I haven’t been able to find a specific example of this long string of text yet, searching online.
- I was also thinking about a parent reference for this particular document. So the document would have a field of, “created_by”, and the associated “_id” of the user who input this information.
Also, in terms of design I have let’s say… 25 different pages that a user will read, learn about, and provide feedback on… sort of how a content management system (CMS), might allow a user to save data entry for a blog post. Considering repeat data entry fields like the above, would
- (1) each page be better maintained as separate collections (to store the data entry for the particular page)?..
- or (2) perhaps one large collection with varying documents, depending on what page the user saved data for? I think this later case would also mean a very large schema of different fields.
So perhaps (1) is the better option… which I think would mean one Schema for one page that contains different questions/answers per each page.
Please remember I am a noob here! So I am open to any feedback or questions.
Thanks.
-Will