I use Mnesia with Erlang, but this question applies to any db key value like couchdb etc.
I am trying to get out of the thinking process of an RDBMS, but I cannot wrap my head around how to effectively implement this scheme.
Let's say I have a user entry and it has many SubItemA entries, many SubItem B entries, so:
User
-SubItem A
--SubItem B
...
I need to run queries in SubItem B. Is it efficient to do this when it is nested? Should I just normalize it so it is faster?
I heard about some people using data duplication, so the data is both nested and separate, is it funny or is it really useful in some cases?
source
share