Yes there isn't much documented on the ORM internals, but there are other
resources. The DUTH videos are a great start and inspired me to get started
contributing to Django. Specifically:

   - https://www.youtube.com/watch?v=CGF-0csOjPw
   - https://www.youtube.com/watch?v=-4jhPRfCRSM
   - https://www.youtube.com/watch?v=-1tt0S__kQk

This talk is also on my to-watch list, from James Bennett, he covers a lot
of internals:

   - https://www.youtube.com/watch?v=tkwZ1jG3XgA

As for looking through the code, try looking at django.contrib.postgres
first - it's interesting as it's all *extensions* to the ORM (custom
fields, migration operations, etc.) so an easier on ramp than diving into
the inner code of Query etc. It's what insipred me to make my library
django-mysql ( https://github.com/adamchainz/django-mysql ) that does the
same kind of stuff for MySQL/MariaDB.

Then maybe look itno tracing some simple queryset operations, such as
Foo.objects.all(), and see all the steps that goes through. Understand what
Query is and how SQLCompiler converts it to SQL that the database backend
executes.

Hope that helps,

Adam

On Mon, 13 May 2019 at 09:54, Mahdi Zareie <mahdixar...@gmail.com> wrote:

> Great, thanks
>
> On Monday, May 13, 2019 at 1:17:08 PM UTC+4:30, J. Pic wrote:
>>
>> Hi Mahdi,
>>
>> I would suggest reading the code and test code in the tests/ directory
>> for the ORM.
>>
>> There might also be some videos from Django Under The Hood conferences,
>> found some here:
>>
>> https://www.google.com/search?q=Django+Under+The+Hood+orm&tbm=vid
>>
>> Best
>>
> --
> 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 post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/81554698-8fad-4fd0-a534-a566725058b3%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/81554698-8fad-4fd0-a534-a566725058b3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Adam

-- 
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 post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM00cB5Mz%2Bsec3KpF%3DEF9Z4yXipzMwuag7q%2B5EFA8cch2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to