News for hackers. Stuff that matters.
Re:Rewrite it in Rails by mehal on Monday November 04, 2024 @01:05PM (#42044311)
Strongly agree to this. Rails developers for some reason just abandoning any work in database and tend to work with data in ruby env
Re:Rewrite it in Rails by cpursley on Monday November 04, 2024 @05:20PM (#42046600)
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.
Re:Rewrite it in Rails by arcanemachiner on Monday November 04, 2024 @06:20PM (#42047088)
Interesting. Does Ecto have any syntax that supports this behavior? Or do you just use raw SQL for this?
Re:Rewrite it in Rails by cpursley on Monday November 04, 2024 @07:53PM (#42047658)
You just treat a view the same way as a table with Ecto.