Answer the question
In order to leave comments, you need to log in
Erlang. How to properly organize data?
Good day,% habrauser%!
Tell me, how to properly organize the storage of m2m data in erlang? A simple example. There are two entities "posts" and "tags". In the classic sql storage, their relationship is implemented using an intermediate table, which makes it easy to find posts by tag and tags by post. How to properly organize the storage of such data in erlang. Without using mnesia. The documentation suggests that there are match/select functions, but the literature that I have read strongly discourages their use due to their low performance.
Answer the question
In order to leave comments, you need to log in
Apparently, the question is about storage in ets . In this case, I would be guided by any howto on storing in key-value nosql like redis, memcache, etc... i.e. , most likely, by the key of the post just stored all its tags
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question