3 ms·
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
by stilisstuk 6y ago
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 6y agoRe: 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?