Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mehal
· 2y ago · 0 comments
Strongly agree to this. Rails developers for some reason just abandoning any work in database and tend to work with data in ruby env
Comments
[–]
cpursley
2y ago
Yep, I'm a big fan of building views in postgres and just hitting those with the ORM. I don't even use the join syntax in my ORM (Ecto) - if I need a join, I use a view.
[–]
arcanemachiner
2y ago
Interesting. Does Ecto have any syntax that supports this behavior? Or do you just use raw SQL for this?
[–]
cpursley
2y ago
You just treat a view the same way as a table with Ecto.