Hello Everyone.
I need to store data that looks like this:
<root>
<child-one>
value 1
value 2
...
value n
</child-one>
...
</root>
By this I mean, a very shallow tree with a variable number of leaves.
I would have liked to store this data in a relational database, but I cannot find of way of doing so without:
Using many "join" tables
For example:
(Object (root, child-one, child-two, ...))
(Join1 (child-one, value 1), (child-one, value 2), ... (child-one, value n) )
(Join2 (child-two, value 1), (child-two, value 2), ... (child-two, value n) )
etc.
Using the "array" datatype (coming from Postgresql)
(Object (root, child-one[], child-two[] ...))
Which of these two would be the best choice, if I did not allow for the use of an XML store or a Document store? Is there another strategy I'm missing?
Thank you.