Replies: 1 comment 1 reply
-
Sequel isn't interpreting DB[:t2].select(:id).where(Sequel[:t2][:t1_id] => Sequel[:t1][:id]).order(Sequel.desc(:column_a)).limit(1) => Sequel[:t2][:id] This is basically the same, just with the key/value switched. Sequel will use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if sequel provides this functionality but I have following problem. I like to join a table like this:
To generate this query I tried using:
But sequel is interpreting the DB[:t2] as an array and will use:
which works functional wise, but will be much slower as using
=
. Is there a way to tell sequel to use=
instead ofIN
or do I need to rethink my query?Beta Was this translation helpful? Give feedback.
All reactions