Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stilisstuk
on Feb 19, 2021
|
parent
|
context
|
favorite
| on:
Migrating to SQLAlchemy 2.0
1) concatenating. Not always possible in complex cases. 2) I don't think it's that hard to write 'select posts from user where user = ?' 3) I prefer functional to oop. In my small apps writing a function with a transparent SQL have worked fine.
nodamage
on Feb 19, 2021
[–]
Re: 2) For a single user, that's fine. What if you are trying to fetch posts for N users at a time? Issue N separate queries?
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: