Django Database Transactions / atomic() function

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

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

  • @bugbytes3923
    @bugbytes3923  9 หลายเดือนก่อน +1

    ORM Playlist link: th-cam.com/video/EsBqIZmR2Uc/w-d-xo.html

  • @DecodingTruth101
    @DecodingTruth101 หลายเดือนก่อน +2

    i have learned more from this series than what i learned in one year combined. Thank you again

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

      Thanks a lot, really delighted to hear that!

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

    This is by far, the most well explained video of Django Transactions. Thanks for your great video!

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

    Nothing better than starting my week with a BugBytes video, great explanation of atomic transactions.

  • @muhammadtayyabtahirqureshi7186
    @muhammadtayyabtahirqureshi7186 6 หลายเดือนก่อน

    this tutorial helped me a lot to understand django database transactions. The best thing is that he has explained the topic by referring to the django documentation.

  • @Khaled-fo7tr
    @Khaled-fo7tr 5 หลายเดือนก่อน +1

    Thank you, for the great explanation. 🙏

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน

      Thanks a lot - glad it was helpful and thank you for watching!

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

    Thank you so much mate, It can't be clearer than this. I will get into the habit of working with transaction now !

  • @Dorso2009
    @Dorso2009 ปีที่แล้ว

    Thanks for the great video! Atomic transactions was one aspect of Django that I hadn't delved into before! Cheers!

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks a lot! Glad it was something new to learn!

  • @mohanaryal5940
    @mohanaryal5940 3 หลายเดือนก่อน +1

    Bravo 👏👏👏👏👏👏👍👍👍

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thanks a lot!

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

    Nice one .Very important video.

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

    Great as always .

  • @Yarkanlaki
    @Yarkanlaki 9 หลายเดือนก่อน

    Finally I found how to manage num of items in stock without any risks

  • @CristianMolina
    @CristianMolina ปีที่แล้ว

    Very nice and deep example, thanks a lot!

  • @qwee-c4r
    @qwee-c4r 6 หลายเดือนก่อน

    Increíble, gracias 🫂🙌🏻

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

    Nice one. Thanks for the gist.

  • @abdulnafihkt4245
    @abdulnafihkt4245 21 วันที่ผ่านมา +1

    I'm facing a small issue. I will explain that.
    I have a model user and I have written a signal for the user as post save inside the receiver function of the post save I have written logic like saving some other data into other tables. My issue is if something happened(error)while saving the other data into another tables , the user data has been saved is not rollbacked.. any solution for this??

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

    i like that ✌, but i think you have to rewrite save method in model instead of rewrite save method in form..

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

    thank you!

  • @Ahmedesmail07
    @Ahmedesmail07 ปีที่แล้ว

    Wow, Amazing tutorial!!, I have a question if i have a function and this is called twice at the same time for refreshing the token of the user the first request when i trying to get the user it works successfully, the second API call for this function returning NoneType Object of the this user due to the refresh token was not equal to the refreshed token at the first,
    If i used the atomicity in this refresh_token view it will solve the problem or what should i do?

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

      Thank you!
      I'm not sure, but I think when you get the NEW refresh token for the first API call - the original refresh token becomes invalid. If you then call the refresh endpoint AGAIN with that original refresh token (instead of the new one that was issued) - you'll probably get the error or the NoneType response. You need to always pass the most recently issued token from the client.
      I think this is more of a client-side issue than a Django/DB issue, but again - not 100% sure.

    • @Ahmedesmail07
      @Ahmedesmail07 ปีที่แล้ว

      @@bugbytes3923 thank you very much sir 💕💕

  • @rokibulhaque1673
    @rokibulhaque1673 ปีที่แล้ว

    Hi, could you please share a tutorial for bulk update using atomic !!!

  • @leohenrique5038
    @leohenrique5038 ปีที่แล้ว

    Hello, your videos are amazing, i am using htmx, but when i use hx-get in button, after this dont load js, how i can to fix this?

  • @craigphollingsworth1460
    @craigphollingsworth1460 ปีที่แล้ว

    Thanks for the video. Great content as always. Finally prompted me to sort some of my code out. Any plans to do anything on async or threading/Mutliprocessing in Django? very limited guidance and docs out there on this kind of stuff. Anyway, thantks again!

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks! It's an interesting topic but I've not really considered a video on this yet. I'll have a think about it though - cheers for the suggestion!

  • @firstandlast4435
    @firstandlast4435 8 หลายเดือนก่อน

    Can't we use lambdas in callbacks? I am not sure, but I genuinely thought that's what they are for

  • @ChristianForexTradersCommunity
    @ChristianForexTradersCommunity ปีที่แล้ว

    please i need the link to the codebase repo on Github

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

    thank

  • @Developer_python_
    @Developer_python_ 16 วันที่ผ่านมา

    🎉

    • @bugbytes3923
      @bugbytes3923  6 ชั่วโมงที่ผ่านมา +1

      Thanks a lot!