Wednesday, 15 August 2012

node.js - Using mongodb to store a single but complex JSON object -



node.js - Using mongodb to store a single but complex JSON object -

i want store single, big , complex json object in mongodb , want able retrieve , modify specific parts of it. simple solution store in single document, i'm not sure how play multiple write requests. alternative maintain every node of json in different documents, kind of pattern explained here in mongodb documentation. way can retrieve parts of whole object , work on them way.

my question is: out of latter approach? i'm kind of new mongodb, read has database lock on multiple write requests, seem having json taken apart accomplish nil when comes scaling.

if consider store info larger 16mb should utilize sort of hashing mongodb has 16mb size limit on documents.

from mongodb limits , thresholds

the maximum bson document size 16 megabytes.

json node.js mongodb

No comments:

Post a Comment