@@ 609-616 (lines=8) @@ | ||
606 | // maps GUIDs to the $rows key |
|
607 | $guid_to_key = array(); |
|
608 | ||
609 | if (isset($rows[0]->type, $rows[0]->subtype) |
|
610 | && $rows[0]->type === 'object' |
|
611 | && $rows[0]->subtype == $plugin_subtype) { |
|
612 | // Likely the entire resultset is plugins, which have already been optimized |
|
613 | // to JOIN the secondary table. In this case we allow retrieving from cache, |
|
614 | // but abandon the extra queries. |
|
615 | $types_to_optimize = array(); |
|
616 | } |
|
617 | ||
618 | // First pass: use cache where possible, gather GUIDs that we're optimizing |
|
619 | foreach ($rows as $i => $row) { |
@@ 97-104 (lines=8) @@ | ||
94 | // maps GUIDs to the $rows key |
|
95 | $guid_to_key = array(); |
|
96 | ||
97 | if (isset($rows[0]->type, $rows[0]->subtype) |
|
98 | && $rows[0]->type === 'object' |
|
99 | && $rows[0]->subtype == $plugin_subtype) { |
|
100 | // Likely the entire resultset is plugins, which have already been optimized |
|
101 | // to JOIN the secondary table. In this case we allow retrieving from cache, |
|
102 | // but abandon the extra queries. |
|
103 | $types_to_optimize = array(); |
|
104 | } |
|
105 | ||
106 | // First pass: use cache where possible, gather GUIDs that we're optimizing |
|
107 | foreach ($rows as $i => $row) { |