Hey Javier!

So currently, during migrations, specifically during the state_forwards and
database_forwards methods, Django renders a fake model and passes it down
to the SchemEditor which is an expensive operation and slows down the
process. The idea is to use ModelStates instead of Models, as their reduced
API make them much more efficient.

The initial problem was filed in this ticket:
code.djangoproject.com/ticket/29898

Kind regards
Sanskar

On Tue, 24 Mar 2020 at 02:44, Javier Buzzi <buzzi.jav...@gmail.com> wrote:

> I don't see how this solves anything. At the end of the day these "real"
> models, or at the very least, not "fake" models will not have any custom
> queryset/manager/properties/method you add to it. Can you explain what it
> is you're trying to accomplish?
>
>
> On Monday, March 23, 2020 at 12:59:55 PM UTC-4, Sanskar Jaiswal wrote:
>>
>> Hey everyone,
>>
>> Here is my proposal for GSoC. My project is based upon making use of
>> ModelState during the migrated phase of the project, rather than rendering
>> fake Models.
>>
>> https://gist.github.com/aryan9600/b1c2eaf445006c17e02e7677cf1098d5
>>
>> Feedback and criticism is highly appreciated.
>>
>> Thanks!
>> Kind regards
>> Sanskar
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/3509e4d0-e99c-4ff3-a4d0-45a5c3a988e3%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/3509e4d0-e99c-4ff3-a4d0-45a5c3a988e3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CACzaa%3DHxwPZ8ODQX%2BnaP8R0%3DWKk-9NapNbzssWK7spJWO1xt8g%40mail.gmail.com.

Reply via email to