cancel
Showing results for 
Search instead for 
Did you mean: 

Best-practice for modeling references between documents?

russtrotter_
Confirmed Champ
Confirmed Champ

Hi folks, is there a best-practice for modeling a reference from one document to another? For example is it a good or bad idea to have one document's schema have a "String" field that will contain a Nuxeo UID to another document? I'm aware of Relations in Nuxeo, but i think I need some additional features beyond just a relationship. Specifically, I want to keep multiple references to a document and preserve the order of the linkage.

1 ACCEPTED ANSWER

bruce_Grant
Elite Collaborator
Elite Collaborator

Don't know if it's a best practice or not but I have used a similar approach in a number of applications to model more complex relationships (and to minimize relation service overheads) including preservation of the order and hierarchy of links. In my case I haven't used UID as the key, instead I have used separate field with uniquely generated value (with some content-specific meaning). The approach works very well.

View answer in original post

2 REPLIES 2

bruce_Grant
Elite Collaborator
Elite Collaborator

Don't know if it's a best practice or not but I have used a similar approach in a number of applications to model more complex relationships (and to minimize relation service overheads) including preservation of the order and hierarchy of links. In my case I haven't used UID as the key, instead I have used separate field with uniquely generated value (with some content-specific meaning). The approach works very well.

thank you very much! this is just the kind of technique idea I was hoping to hear

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.