M
M
Maxim Barulin2015-02-08 21:32:16
Erlang
Maxim Barulin, 2015-02-08 21:32:16

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

1 answer(s)
D
Dmitry Tyuterev, 2015-02-08
@dmitryttt

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 question

Ask a Question

731 491 924 answers to any question