Here's the issue I'm having in moving from SQL to a document db with a 2MB limit on documents. Suppose I have an entities that looks like this
unit
id
item[]
item
id
name
If item[]
can be arbitrary length (as is usually the case), then I can't store the unit
in its literal representation because there's a chance that its size could exceed 2MB. What I think I have to do in such a case is convert this structure to
unit
id
item
id
unitId
name
and then need to perform "joins," which feels too much like SQL (Hence, what's the point of using no-SQL?).