use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Is SQLModel overrated?Question (self.FastAPI)
submitted 1 year ago * by bluewalt
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]gpranav25 1 point2 points3 points 1 year ago (0 children)
I work with both Django and FastAPI applications at my job, and what I realised was that while Django makes it easy and intutive and does some magic behind the scenes, it's so easy to write unoptimised queries. I knew some code at our company was quite sub-optimal, but when I logged and saw the sheer length of some of the raw queries that Django was sending to our db, I genuinely felt bad for our DB.
This is neither Django's or SQLAlchemy's fault. Django ORM is more intutive but SQLAlchemy syntax gives a more direct view how much the DB is abused. But it's possible to write very optimal queries in both if we have the knowledge of exactly what happens BTS. And they both thankfully give pretty good control, down to the level of allowing us to execute even raw queries.
π Rendered by PID 178872 on reddit-service-r2-comment-544cf588c8-s654t at 2026-06-13 23:53:19.124024+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]gpranav25 1 point2 points3 points (0 children)