ETS Match Specification Pitfall: Maps

During my work, I had a problem where I needed to efficiently write tree-shaped data. I also needed the ability to query ranges of the data. I reached for ETS tables, using the ordered_set table setting, and relied on match specifications to read ranges from the table. ETS tables can have different storage backends. See the documentation for ets:new/2 for details. These backends reside within in a…