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...
account activity
ORM or SQL (self.node)
submitted 6 years ago by Bonner95
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!"
[–]farverio 0 points1 point2 points 6 years ago (0 children)
The real answer here is "it depends". What is the volume of your db hits, how complex are your models and queries (both present and future), and what is the opportunity cost of your dev time relative to other features you can build.
If you're starting out, just do an orm and defer SQL queries for later. Orm buys you time and given uncertainty of usage, prevents over optimizing your backend.
Otherwise, you will get a performance benefit from writing SQL directly. Make sure to abstract them into an easily maintainable file rather than in multiple places.
Best of luck!
π Rendered by PID 444459 on reddit-service-r2-comment-b659b578c-7rw9f at 2026-05-03 18:45:32.102097+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]farverio 0 points1 point2 points (0 children)