Question

I was just reading about Django database fixtures. Both dumping and resetting are mentioned.

It seems that dumping is to get rid of a specific data set in a database, and resetting erases all the data from the database. Is that right? Another possible difference I spotted is that maybe dumping is reversible, but resetting isn't?

Was it helpful?

Solution

Dumping does what it says, dumps the data, which you can reuse, import, backup or just delete, reset destroys both your tables and your data giving you practically an empty db. Please bare in mind that reset no longer exists, it has been replaced with flush

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top