Mnesia with Memento lost all records for all tables

If I understand you correctly I just need to write a script that keeps writing and reading from Mnesia in an infinite loop and then I kill it with kill -9?

If yes, then my application was not in active use when I lost the data, by other words it was running but I was not using it.

Anyway I can try it, maybe using a script like the one used to show the issue with the Mnesia durability guarantees?

Or are you thinking that instead I should just use my app:

  1. start my app as usual with mix phx.server.
  2. use it from the browser as usual
  3. leave it running for a while
  4. Kill it with kill -9