Hi,
It is very hard to say what the optimal size of Tamino documents is. It depends on many factors, like the number of elements and attributes inside the document or the queries that are stated against the documents. So, basically you have to find the optimum that lies in between the ?all-in-one? and the ?relational? approach.
Assuming that an item is not a very complex object it shouldn?t be a problem to have one document per product that contains all its items. I would store the orders in a separate doctype. But, the reason for this is not that I?m afraid of getting too big documents. The reason is that I want to store products that might have not been ordered yet.
Finally I strongly suggest no to state a lot of ?small? queries and joining their result in the application. Since it is very unlikely that the application can do a more efficient join processing than Tamino, join operations should be done by stating appropriate XQuery statements.
Best regards,
Thorsten Fiebig
#webMethods#API-Management#Tamino