What Haven’t We Talked About?

ETS and DETS tables support a number of operations that we haven’t talked about in this chapter. These operations fall into the following categories:

  • Fetching and deleting objects based on a pattern

  • Converting between ETS and DETS tables and between ETS tables and disk files

  • Finding resource usage for a table

  • Traversing all elements in a table

  • Repairing a broken DETS table

  • Visualizing a table

More information about ETS[23] and DETS[24] is available online.

ETS and DETS tables were designed for efficient low-level in-memory and disk storage of Erlang terms, but this is not the end of the story. For more sophisticated data storage, we need a database.

In the next chapter, we’ll introduce Mnesia, which is a real-time ...

Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.