Use inner join instead of a left join.

In some database servers an INNER join performs better than a LEFT join.

Fixes #3979
This commit is contained in:
mark_story 2013-08-13 13:40:59 -04:00
parent 6ce10b28c9
commit 3bdcf7b440

View file

@ -163,7 +163,7 @@ class AclNode extends Model {
'joins' => array(array(
'table' => $table,
'alias' => "{$type}0",
'type' => 'LEFT',
'type' => 'INNER',
'conditions' => array(
$db->name("{$type}.lft") . ' <= ' . $db->name("{$type}0.lft"),
$db->name("{$type}.rght") . ' >= ' . $db->name("{$type}0.rght")