TT#78153 fix _item_by_aor for redis

- prevent unneccesary redis "scan"s
- avoid filter/scan (iterating all registrations) by properly
un-aliasing filednames
- ignore any registration of subs that no longer exists
- apply the fixes for ->search(), but also ->find()

(cherry picked from commit adabbf084b)

(cherry picked from commit 65a3d54d240277d195c9d45cc66b3d42b68b3269)

Change-Id: Iad554dbb909421458784de4230a3129fca56ac5f
mr6.5.11
Rene Krenn 6 years ago
parent 5368221ca3
commit 4d491782d4

@ -163,7 +163,7 @@ sub _rows_from_mapkey {
'+select' => ['reseller.id'],
'+as' => ['reseller_id']
})->first;
next unless $subscribers_reseller;
return unless $subscribers_reseller;
if (exists $filter->{reseller_id} && $filter->{reseller_id} != $subscribers_reseller->get_column('reseller_id')) {
next;
}

Loading…
Cancel
Save