What is the Django ORM?

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • A quick overview and demystification of the basics concepts of the Django ORM. The Django ORM is a core feature which we will be exploring in this tutorial series. You will get to know more about making queries and how that translates to SQL.
    ✨ Support us - join us as a very academy member
    / @veryacademy
    👍SUBSCRIBE to get more free tutorials, courses and code snippets!
    / @veryacademy
    👍👍Follow us on Facebook
    / veryacademycom-1132321...
    👍👍👍Follow use on Twitter:
    / veryacademy

ความคิดเห็น • 59

  • @theblackelephant
    @theblackelephant 2 ปีที่แล้ว +13

    On behalf of self learning students of youtube university we want to thanks you for your great content.

  • @aashayamballi
    @aashayamballi 3 ปีที่แล้ว +3

    Congratulations on 2K subs!! 🎉🎉

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      🎉 Thank you - slowly building up steam!

    • @davidrosen2705
      @davidrosen2705 3 ปีที่แล้ว +1

      @@veryacademy when you get to 200k and be big shot youtuber remember loyal fans

  • @repotranstech9614
    @repotranstech9614 2 ปีที่แล้ว +1

    Why doesn't this channel has more subscribers.?super helpful.

  • @usaava
    @usaava 2 ปีที่แล้ว +1

    Finally, I found you! Thanks so much for your video!

  • @oauth9728
    @oauth9728 3 ปีที่แล้ว +4

    What a detailed tutorial. THANKS.
    pls do
    Django Ecommerce,
    Django Multi-choice quiz series 🙏

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +7

      Django commerce is just big one for sure. I will promise that this will happen. I will share with you my overall big plan for the Django content on this channel - they both feature. This all just takes time at the moment. If/when/as things pick up on the channel I will dedicate more time to making bigger projects. In some respects I am only been doing this for a few months - still learning and trying to make small improvements to content and delivery style etc. I would imaging that before Christmas I would have started Ecommerce - the quiz - well that is really simple and fun one to do....😁 will see 👍

    • @oauth9728
      @oauth9728 3 ปีที่แล้ว +1

      Thanks for your quick response.

  • @vinay__baliyan
    @vinay__baliyan 3 ปีที่แล้ว +5

    You never disappoint me. Awesome tutorial. Really appreciate it.

  • @AlanTinoco
    @AlanTinoco 3 ปีที่แล้ว +1

    Man, what a tutorial! Thank u so much!

  • @adityakotikalapudi329
    @adityakotikalapudi329 3 ปีที่แล้ว +1

    Very nice series thanks for your great effort I loved all your series django-restframework and all other in django ❤️❤️👍 keep doing more all the best

  • @bagurashamuddeen7554
    @bagurashamuddeen7554 3 ปีที่แล้ว +2

    Great. You always take your time to impact. Good contents.

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      I appreciate that! I try and use signals from comments to guide me 👍

  • @amroulouay6819
    @amroulouay6819 ปีที่แล้ว +2

    Could you please include the PowerPoint presentations you are using in this series in the description?

  • @_radix_
    @_radix_ 2 ปีที่แล้ว +1

    Man you are a legend!

  • @rajughorai3909
    @rajughorai3909 3 ปีที่แล้ว +1

    thanks for the awesome video series

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Glad you enjoy it! Thank you!

  • @lucastavares4908
    @lucastavares4908 3 ปีที่แล้ว +1

    Nice content, keep going man!!

  • @tounsimed5202
    @tounsimed5202 2 ปีที่แล้ว +1

    sir Do I need to learn sql or ORM is enough for django projects ?
    and I want to tell you , you are a great teacher thank you so much for your hardwork

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว +1

      You will be fine with the ORM up to a point when you start scaling your app to much larger audiences. At that point, depending upon the complexity of your queries, you might start to look at the SQL to optimise further

    • @eraofmaths
      @eraofmaths 2 ปีที่แล้ว

      @@veryacademy thanks man

  • @SOHAILKHAN-iu8fu
    @SOHAILKHAN-iu8fu 2 ปีที่แล้ว +1

    we love you sir

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว

      Thanks Sohail, no need for the sir though, I am not knighted ;)

  • @egehurturk6209
    @egehurturk6209 3 ปีที่แล้ว +1

    You are the best

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Thank you once again 👍😁

  • @mdsamiulislam2522
    @mdsamiulislam2522 3 ปีที่แล้ว

    you have said in ur video at 9:56 minute that Queries can perform better. do u mean that direct sql query performs better than ORM?

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Hi Md - for smaller projects the ORM provides, you might start optimising further at later stages of your project with direct SQL queries

  • @iopyrb
    @iopyrb 4 หลายเดือนก่อน +1

    does ORM replace the use of SQL?

    • @veryacademy
      @veryacademy  4 หลายเดือนก่อน

      Yes for the developer, but it translates your requests into sql behind the scenes

    • @iopyrb
      @iopyrb 4 หลายเดือนก่อน

      @@veryacademy yes, i mean.. can replace it? ( like just using orm in any project not using raw sql)

  • @smitpatel1358
    @smitpatel1358 2 ปีที่แล้ว

    Wonderful!!!

  • @imanhpr
    @imanhpr 3 ปีที่แล้ว +1

    thanks

  • @vickeypradhan9831
    @vickeypradhan9831 3 ปีที่แล้ว +1

    Please include select_Related and prefetch related.

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      Thank you - have added to the list

  • @createlifejr
    @createlifejr 3 ปีที่แล้ว

    Hey Zander,
    So does using, Students.objects.raw('SELECT * FROM Students"), something like that can improve performance compared to Students.objects.all()? I have seen this in SO and was kinda confused.

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +2

      Evening - that is a great question. I think I can summarise this by saying ORM can be comparable in performance to using RAW queries (in most cases) (you can also bypass the ORM completely) - I will show you that shortly in the up and coming tutorials. There are times when you want to write more complex queries - so you can if you like, revert to writing your own SQL. With the ORM you are not tied to it. In your question - the query is straight forward and probably wouldn't see any real difference. What is important is - Caching - this is one of the best methods to reduce DB related performance. There are different kinds of caching implementations in Django - cached property on model - query caching and template caching. 👍 But don't get too tied up with RAW for now. If you really wanted to move down this path, learning SQL would be more worth your time.

    • @createlifejr
      @createlifejr 3 ปีที่แล้ว +2

      @@veryacademy Thank you.. got it!
      Will you be doing any courses related to caching anytime soon?

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +2

      @@createlifejr Been asked many times - its a tricky one to teach to be honest. I have been slowly working and planning it. There is a lot of setup to this also - again a time sink. It will all click eventually and should get something out.

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      Best thing is to - and I really don't mind - keep reminding me!

    • @createlifejr
      @createlifejr 3 ปีที่แล้ว

      @@veryacademy Sure! 👍

  • @rangabharath4253
    @rangabharath4253 3 ปีที่แล้ว +1

    awesome

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      Hey Ranga, thank you. Things are real slow at the moment - for that I apologise

    • @rangabharath4253
      @rangabharath4253 3 ปีที่แล้ว +1

      @@veryacademy Congratulations on 2K subscribers. More to come :)

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว +1

      I do find it a bit crazy to be honest!

  • @ilyosbekkarshiboyev7134
    @ilyosbekkarshiboyev7134 2 ปีที่แล้ว +2

    good luck

  • @popovanatoliy4736
    @popovanatoliy4736 8 หลายเดือนก่อน +1

    in fact i always hear that gjango orm is django's weak side, comparing to sql alchemy.

  • @coltennabers634
    @coltennabers634 2 ปีที่แล้ว +1

    its pronounced 'impee''dence mismatch

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว +1

      Yeah we had that discussion 😂

    • @coltennabers634
      @coltennabers634 2 ปีที่แล้ว

      @@veryacademy thanks the playlist is really good

  • @choochtrain
    @choochtrain 2 ปีที่แล้ว +1

    No offense, but you need to fix pronunciation on this one: "Impendance" -> "Impedance"
    Watching/listening I was confused, until I read the word to understand the point.

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว +1

      Sorry, I do that a lot, with trying to talk on the mic, thinking about what I am doing and typing I tend to make many mistakes like this. Won’t be too long until impendance day!

    • @choochtrain
      @choochtrain 2 ปีที่แล้ว

      @@veryacademy LOL.

    • @choochtrain
      @choochtrain 2 ปีที่แล้ว

      And thanks for the tutorial!