#34865: DatabaseWrapper are not GC and connections are not closed -------------------------------------+------------------------------------- Reporter: Fábio Domingues | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: 4.2 (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Fábio Domingues): One more detail. Using `objgraph.show_growth` without doing `gc.collect` give us this on each new request: {{{ list 1990 +10 dict 6798 +3 deque 20 +2 lock 43 +2 OrderedDict 11 +2 partial 24 +2 ReferenceType 3848 +1 DatabaseWrapper 6 +1 DatabaseClient 6 +1 DatabaseCreation 6 +1 DatabaseFeatures 6 +1 DatabaseIntrospection 6 +1 DatabaseOperations 6 +1 BaseDatabaseValidation 6 +1 DatabaseErrorWrapper 5 +1 PGconn 5 +1 Connection 5 +1 PrepareManager 5 +1 AdaptersMap 7 +1 TypesRegistry 7 +1 }}} with the previous patch the output of `show_growth` is empty. -- Ticket URL: <https://code.djangoproject.com/ticket/34865#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018abd500b05-ea715257-fc17-49d5-8f78-fcd45f9590fc-000000%40eu-central-1.amazonses.com.