module Card::Query::AbstractQuery::Tie

The “Tie” methods support tying two queries (CardQuery, ReferenceQuery, etc) together. The “subquery_type” variable determines which tying strategy is used.

We currently support three values for “subquery_type”: :join, :exist, and :in

In concept, here’s how the different strategies would tie table A to table B in SQL assuming A.id = B.a_id

The different strategies will return the same values but the relative speed is context dependent.