I am thinking about starting my first CouchDB project and, based on the background of ORM, I am concerned about how to create my documents, which can be difficult to maintain.
For example, if I have the following model:
A * ---> (1) B
which means that for every object A there is an object B, and there are many instances of A that can share the object B. In this case, there are pointers / foreign key in AB.
I could create a document containing all data A and B. However, the problem is that if at a later stage (after creating 10000 documents) I may need to change some data, which means that I need to update all my documents .
In the world of ORM / normalized database, I would just update B, and all my links now refer to the database.
How do I handle this in CouchDB or is it a NoSQL approach not suitable for these situations?
Jd
source
share