How best to model documents with related user data?

(Brad Leupen) #1


I am trying to figure out the best way to store documents have associated user-specific settings (e.g. isFavorite, lastAccessed).

I would like the to allow users to filter and sort their content based on these settings. I have looked into parent/child and nested models and both feel awkward. Parent/Child is easy to update and filter by but I can't make it sort (e.g. "Show me all of my content ordered by the time I last accessed it"). Nested updates seem complicated.

Any tips?


(Imran Siddique) #2

did u explore array of objects (not nested objects)?

(system) #3