Storing MongoDB tree using Materialized Paths pattern -
I need to duplicate a directory structure in Mangond. I have read about the patterns of physical routes and I need to use it
Patterns of physical routes store each tree node in a document; In addition to the tree node, the document stores as the ancestors of the nodes in the form of a string or as an ID (s) of path
The problem with this is that _ID should be unique, but in my case the directory The name must support duplicates (you can have 2 ore more directories with the same name).
Any thoughts? Thank you.
Comments
Post a Comment