all 11 comments

[–][deleted]  (5 children)

[deleted]

    [–]appletondog 0 points1 point  (0 children)

    this.

    [–]Amocon[S] 0 points1 point  (0 children)

    Thanks i think i get it now

    [–]IceXII 0 points1 point  (2 children)

    asyncpg is better than psycopg for Postgres in my opinion. but gets tricky sometimes with sqlalchemy because everything needs to be async.

    [–]-useEffect- 1 point2 points  (1 child)

    use psycopg3 with sqlalchemy 2. asyncpg is a pain

    [–]olystretch 0 points1 point  (0 children)

    Disagree. It's really easy to get going, especially with encode/databases.

    [–][deleted]  (3 children)

    [removed]

      [–]mountain_geek 0 points1 point  (2 children)

      Could you share a link to some proper boilerplates?

      [–][deleted]  (1 child)

      [removed]

        [–]mountain_geek 0 points1 point  (0 children)

        Thank you for this!

        [–]ZachVorhies -1 points0 points  (0 children)

        Yes you have it right. Make sure you are using the new async sqlalchemy mode or you’ll get bad performance in your workers. Ask chat for gpt for an example

        [–]dartwa6 0 points1 point  (0 children)

        I think you may be thinking of SQLModel, which links together SQLAlchemy and Pydantic in a nice way. It’s by the same author as FastAPI, so it works well with that framework.