skip to Main Content

How to delete 200,000 records with DJango? – Postgresql

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.DatetimeField() ... class Book(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) And I have a around 200,000 records. Languague: Python Framework: Django Database: Postgres…

VIEW QUESTION
Back To Top
Search