mnesia delete calls on: disc_only_copies same storage size
Benjamin Adams
ben@REDACTED
Fri Jun 19 23:25:35 CEST 2020
Hello,
I have problem where when I make delete calls to table disk usage
doesn't decrease.
> erlang:system_info(otp_release).
"19"
My Create Table:
mnesia:create_table(Tbl,
[
{type, set},
{attributes, [rowId, row1, row2, row3, createdOn]},
{disc_only_copies, [node()]}
]).
My Delete Call:
async_dyn_delete(Tbl, Results) ->
DELETE = fun() ->
lists:foreach(fun(Object) ->
{_, Key,_,_,_,_,_} = Object,
mnesia:delete(Tbl, Key, write)
end, Results)
end,
mnesia:sync_transaction(DELETE).
Storage on Disk for table is not changing with the deletes.
Do I delete differently???
Thank you,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200619/7478ee3b/attachment.htm>
More information about the erlang-questions
mailing list