Opened 6 years ago
Last modified 6 years ago
#29651 closed Cleanup/optimization
MemoryError while deleting object with huge amount of related objects — at Initial Version
Reported by: | Sven R. Kunze | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 2.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It seems like Django admin is loading all related objects into memory while deleting via admin interface.
Can we make deleting related objects iteratively (applying signals etc.)?
SO question on this topic I found so far:
https://stackoverflow.com/questions/31477723/how-to-prevent-django-from-loading-objects-in-memory-when-using-delete
Related ticket:
https://code.djangoproject.com/ticket/10919
Note:
See TracTickets
for help on using tickets.