Understanding the Lazy Parameter in Flask-SQLAlchemy Relationships

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

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

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

    Join my free course on the basics of Flask-SQLAlchemy: prettyprinted.com/flasksql

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

    Amazingly clear!! This is the only place that I can understand what Lazy Parameter is all about!!

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

    I watched this video few months ago and It was so difficult to understand but I'm happy I comprehend it now. Thank you, Anthony, for what you do for the Flask community.

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

    so much clearer than the sqlalchemy documentation. thank you for this

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

    I was looking for such a detailed tutorial. Thank you so much

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

    Just sending my thanks from 2022!

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

    Thank you so much for your videos! Hours of reading documentations, but you can answer my questions in a few minutes. 🥰

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

    Hi! Thanks for the explanation, it really helped!

  • @81asimayub
    @81asimayub 6 ปีที่แล้ว +3

    Thanks for the video, I was struggling to understand this before and now it is crystal clear.

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      I'm glad I could help. Thanks for watching.

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

    I am new to this but I understood it well. Thank you!

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

    You are heaven sent man!!!

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

    Hi, How can I show the names of pets of one person? Thanks a lot, your videos are of great help.

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

    Can't believe Arnold Schwarzenegger is teaching me awesome Flask tutorials!

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

    Thank you so much

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

    Great tutorial!

  • @shraddhapatil4070
    @shraddhapatil4070 4 ปีที่แล้ว

    Can you please make a video on uselist parameter and share it across. Thanks in advance

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

    Great video

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

    Too good

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

    Great video as always. keep up the good work. I have two questions 1) When using 'joined' lets say in your example and I want to print these fields in a template, do I still have to write a double for loop to access Pet's fields ? 2) I have DebugToolbar installed and I have noticed that too many queries are executed. I think that you showed how to we can fix this but I cannot find the video.

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Yeah, if you're starting from an arbitrary person and you want to get their pets, then you'll need two loops.
      For too many queries being executed, it depends completely on which queries are being executed and why. It's solved more by moving the queries around or removing them completely.

    • @tasoulman
      @tasoulman 7 ปีที่แล้ว

      Ok, two loops it is. I mean that I see the same query executing as many times as the results

    • @tasoulman
      @tasoulman 7 ปีที่แล้ว

      Any answer to my last question ?

    • @prettyprinted
      @prettyprinted  7 ปีที่แล้ว

      Hey, sorry for the delay. I answer comments in bulk every few days. Could you send me an example so I could take a look? anthony@prettyprinted.com

    • @tasoulman
      @tasoulman 7 ปีที่แล้ว

      Any clue ? anyone ? I think you made a video about this but I can't find it

  • @mustaphab32
    @mustaphab32 4 ปีที่แล้ว

    A question please :
    whene using lazy dynamic :
    an appenderquery isnt the same as a base query , why dont they make a pagination for AppenderQuery to use it as we can use it for BaseQuery , that will be good
    is there any way to use pagination on a relation when lazy=dyanmic ?
    thank you for your amazing help

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

    hey man, first off, thank you for your video, it's very informative. but i wonder if you can help me with something, what if i wanted to fetch a pet, with it's owner, how can it be done?

  • @ReallyHighoncarbs
    @ReallyHighoncarbs 6 ปีที่แล้ว

    Hey ! I see that you are using wsl , do you figure out a way to use venv setup in wsl on windows ? So that sublime text can work with that venv

    • @prettyprinted
      @prettyprinted  6 ปีที่แล้ว

      I haven't look into combining the two yet.

    • @ReallyHighoncarbs
      @ReallyHighoncarbs 6 ปีที่แล้ว

      Pretty Printed if you find a solution do post a video about it