Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How big can Erlang DETS be and what to do if its too small?

Tags:

erlang

dets

All I need is a large persistent lookup table in Erlang and dets seems like just the thing though I need a definative answer to:

  • just how big the total size of the binaries in the table can be.
  • how big each entry can be
  • what to do if the answer to the first question is less than 100G
like image 796
Arthur Ulfeldt Avatar asked Dec 30 '22 10:12

Arthur Ulfeldt


1 Answers

This is kind of an RTFM question. As quoted directly in the second paragraph of the DETS manual:

The size of Dets files cannot exceed 2 GB. If larger tables are needed, Mnesia's table fragmentation can be used.

like image 131
Dustin Avatar answered Mar 16 '23 05:03

Dustin