mercredi 25 mai 2016

Is there a way to create a STRAIGHT_JOIN using Laravel's ORM?

I have one query where I need to use a STRAIGHT_JOIN for performance reasons. The query is built like this:

$query->join('tbl2 as b', function ($join) {
            $join->on('a.b_id', '=', 'b.id')
                ->where('b.x_id', $x);
        })

Is there any way to force the query to use STRAIGHT_JOIN? It looks like this is impossible because there's no space (like you would have with INNERT JOIN, LEFT JOIN, etc).



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NO546Q
via IFTTT

Aucun commentaire:

Enregistrer un commentaire