storage_properties
This commit is contained in:
parent
a261f3c678
commit
c29fd68dd5
|
@ -92,7 +92,9 @@ create_table(subscription, RamOrDisc) ->
|
|||
{type, bag},
|
||||
{RamOrDisc, [node()]},
|
||||
{record_name, mqtt_subscription},
|
||||
{attributes, record_info(fields, mqtt_subscription)}]).
|
||||
{attributes, record_info(fields, mqtt_subscription)},
|
||||
{storage_properties, [{ets, [compressed]},
|
||||
{dets, [{auto_save, 5000}]}]}]).
|
||||
|
||||
if_subscription(Fun) ->
|
||||
case env(subscription) of
|
||||
|
|
Loading…
Reference in New Issue