An option ram_file is described in DETS Erlang docs
open_file(name, args)
{ram_file, boolean()}- Whether the table is to be kept in RAM. Keeping the table in RAM can sound like an anomaly, but can enhance the performance of applications that open a table, insert a set of objects, and then close the table. When the table is closed, its contents are written to the disk file. Defaults tofalse.
this will perform save on disk after insert or update
What if i'll use open - then lookup - then close?