7340: Performance improvement in ancestor filter
This commit is contained in:
parent
fe71887ad1
commit
c0770988c6
@ -70,6 +70,8 @@ class IsAncestorOf(Rule):
|
|||||||
def init_ancestor_list(self, db, person,first):
|
def init_ancestor_list(self, db, person,first):
|
||||||
if not person:
|
if not person:
|
||||||
return
|
return
|
||||||
|
if person.handle in self.map:
|
||||||
|
return
|
||||||
if not first:
|
if not first:
|
||||||
self.map.add(person.handle)
|
self.map.add(person.handle)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user