DETS is disk-based term storage for BEAM applications. It organizes Erlang terms in tables, with each table backed by a single file, providing a simple way to persist data on disk. section 10.3.3
DETS is useful when an embedded, file-backed store is sufficient:
- Keeps data inside the same BEAM operating-system process rather than requiring a separate database service. section 10.3.3
- Allows concurrent writes, including writes targeting the same row, with basic isolation. section 10.3.3
- Offers an interface somewhat similar to ETS, but with fewer features. section 10.3.3
DETS remains a relatively simple facility rather than a full database system. Mnesia builds on ETS and DETS to add features such as transactions, secondary indexes, sharding, and replication. section 10.3.3
