Last sentence should be:
Any reason why there isn't a way to stick on additional conditions on
association_join so it gets put on the join condition?
On Wednesday, June 17, 2020 at 3:57:10 PM UTC+3, Aryk Grosz wrote:
>
> I've noticed the library promotes the usage of
>
> dataset.association_join(association: proc{|ds| ds.where(user_id: 1)})
>
> From what I understand, there is no way, to "on the fly" add the "user_id:
> 1" as a condition, am I right?
>
> Doing as a subquery creates a temp table in memory which from what I've
> read loses it's ability to use indexes.
>
> Any reason why there isn't a way to stick on addition conditions on
> association_join so it gets put on the join table?
>
> Aryk
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/9a8f0d1b-b73d-408d-b041-4fda50f79da4o%40googlegroups.com.