I created a django command to remove about 100.000 entries in our database, however we tested it and noticed that when the command is terminated or otherwise raises an exception, the .delete() is not applied.
For example the command is at 100 of the 100.000 and we terminate the command, all entries are still there and the 100 that should be gone are still there.
Does anybody know why this happens and if this behaviour can be disabled. I know this can be dangerous, but we need it 🙂
I tried to look at the implementation, but I cannot figure it out.
Ian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.