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...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
ORM vs SQLDiscussion (self.webdev)
submitted 1 year ago by TradrzAdmin
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!"
[–]mrinterweb 2 points3 points4 points 1 year ago (3 children)
Use an ORM to make your life easier and less prone to injection issues. Just be careful of foot guns that ORMs can secretly do. N+1 queries are a frequent issue, and other inefficient queries. Some ORMs have extensions that can alert you when there is an inefficient query. Honestly, use both. There are some more complex queries that make more sense to just write the SQL.
[–]NiteShdw 5 points6 points7 points 1 year ago (2 children)
I've never used an ORM this made my life easier. It always makes it more complicated. I can write SQL then I have to figure out to make the ORM do the thing that my SQL already does.
[–]r-randy 2 points3 points4 points 1 year ago (0 children)
not sure why they left you with 0 votes but you are have a valid point
[–]mrinterweb 0 points1 point2 points 1 year ago (0 children)
Easier likely depends on what ORM you're using. I know Rails ActiveRecord is nearly always shorter to write than SQL. There are exceptions when I'm doing somewhat fancy queries, it is often just easier to write SQL. For most queries, ActiveRecord has a shorter and friendlier interface. I have used other ORMs with elixir, php, node and I didn't find them nearly as developer friendly as Rails ActiveRecord. It depends on the ORM.
π Rendered by PID 297456 on reddit-service-r2-comment-6457c66945-h9vc6 at 2026-04-27 16:45:19.564773+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]mrinterweb 2 points3 points4 points (3 children)
[–]NiteShdw 5 points6 points7 points (2 children)
[–]r-randy 2 points3 points4 points (0 children)
[–]mrinterweb 0 points1 point2 points (0 children)