Skip to main content

All Questions

Tagged with
0 votes
3 answers
1k views

How to delete 200,000 records with DJango? [duplicate]

Situation: I have Model have a relation 1-1, sample: class User(models.Model): user_namme = models.CharField(max_length=40) type = models.CharField(max_length=255) created_at = models....
Thành Lý's user avatar
0 votes
2 answers
1k views

Sequelize queryInterface bulkDelete does not reset id sequence

I use pg_dump to make a copy of the database, copy1.sql. I run an up migration to create a new instance up: asyn (queryInterface) => { return await queryInterface.bulkInsert('keys', [{ clientKey: ...
C. Yee's user avatar
  • 197