persistent_term to replace ETS for caching
Frank Muller
frank.muller.erl@REDACTED
Sun Dec 6 00:45:44 CET 2020
Hi guys,
At work, we cache about 5.3 million entries in ETS. The system works
perfectly, no issue so far (many years).
During a brainstorming session, a colleague suggested to switch to
persistent_term instead to avoid ETS term copying.
Pretty simple: we check if the Key exists in persistent_term. If yes, we
are done. If not, we get it from ETS, move it to persistent_term and send
it back to the caller.
Question: is there any limitation(s) on persistent_term usage? Stated
otherwise, can we create 5.3 million persistent_term <K,V>?
Any suggestion/idea/thought is very welcome.
/Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20201206/5ef952fa/attachment.htm>
More information about the erlang-questions
mailing list