Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ORMs have better support I've found in the past (at least in .NET and Go) for Postgres. Especially around date types, UUIDs and JSON fields IIRC.


You don’t need an ORM either. It’s just another level of complexity for very little to no gain in almost all cases. Just write SQL.


You always get a comment like this. I don't particularly agree. There are pros and cons to either approach

The tooling in a lot of languages and frameworks expects you to use an ORM, so a lot of the time you will have to put up a fair bit of upfront effort to just use Raw SQL (especially in .NET land).

On top of that ORM makes a lot of things that are super tedious like mapping to models extremely easy. The performance gains of writing SQL is very minor if the ORM is good.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: