In the Marklogic XML DB that I am working on, there are two different documents that have the same URI. Is legal to have the same URI for different XML docs in Marklogic DB ??
MarkLogic documents are identified by their URI. You should not have different documents with same URI but it can happen. Take a look at this link https://help.marklogic.com/knowledgebase/article/View/22/0/handling-xdmp-dbdupuri-errors . It has suggestions on how to resolve the issue
You can use same URI there is no violation as such. Since your requirement asks for same URI, you can give each document a different collection and hence you will be able to fetch/query your database accordingly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.