#24396: Migrate only required models to the "other" database
-------------------------------------+-------------------------------------
     Reporter:  aaugustin            |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Testing framework    |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by jarshwah):

 Thanks for knocking this up. I just ran the the test suite on Oracle with
 this patch:

 1minute 53 seconds to create the first database
 27 seconds to create the second database

 (The cleanup/dropping databases is also heavily weighted against the first
 database - I didn't measure but it would have been around 1 minute and 30
 seconds respectively)

 Without Patch:

 2 minutes to create the first database
 1 minute 35 seconds to create the second database.

 About 1 minute is saved on the creation of the second database. I suspect
 mssql will see similar improvements, so I'll tag manfre here incase he
 wants to check it out.

 I have done some measurements WRT Oracle and migrations but I abandoned
 them. Querying for table_names, view_names, and constraints takes quite a
 long time, and the results are never cached (clearing the cache wasn't as
 straightforward as it could have been).

 https://github.com/jarshwah/django/tree/migrate-other-tests incase others
 struggle with git apply x.patch like I did :P

--
Ticket URL: <https://code.djangoproject.com/ticket/24396#comment:2>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.9616fae04d99c691b8e04fe612e614fc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to