Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between delete and dirty delete in mnesia

I have searched on net but could not find the satisfied answer to difference between mnesia:delete and mnesia:dirty_delete.Is this related to lock? Any pointers

like image 367
Geek Avatar asked Dec 05 '25 14:12

Geek


2 Answers

This piece of docs will be helpful. It explains transactions in distributed mnesia and explains, that dirty functions run without them.

like image 57
tkowal Avatar answered Dec 07 '25 18:12

tkowal


This is indeed related to transactions. Dirty give you the ability to bypass the transactional behaviour, but there is a risk for data integrity. Thus, you have to know what you are doing when using dirty operation.

like image 25
Mickaël Rémond Avatar answered Dec 07 '25 18:12

Mickaël Rémond