Code

Opened 5 years ago

Closed 5 years ago

#11547 closed (wontfix)

Delete all takes a lot of time

Reported by: jonathan.livni@… Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

SomeObject.objects.all().delete() takes a very long time.
I'm working with a remote MySQL server, and my internet connection isn't great, but I thought this operation shouldn't take that long. There are only ~500 rows in the table. Does django download all the objects and only then send the delete?!

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

Django emulates CASCADE on delete behavior for deletes.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.