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

Popular posts from this blog

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -