Re:It's not Ruby that's slow, it's your database
by kayodelycaon on Tuesday November 08, 2022 @09:42PM
(#33526980)
I use rails every day. Looks close enough. You’d just need to specify the fields with the table name, I.e. ‘albums.id’.
Also, for anyone reading, a total_length method dynamically will be added objects returned. :)
Edit: I think it's something like
I think you don't even need to explicitly wrap it in Arel.