Performance speed up

svn: r10882
This commit is contained in:
Gary Burton 2008-07-20 18:30:23 +00:00
parent c35ef6649d
commit 96c1d044f3

View File

@ -315,10 +315,10 @@ class ReferencedProxyDb(ProxyDbBase):
handle_itr = self.db.find_backlink_handles(handle, include_classes) handle_itr = self.db.find_backlink_handles(handle, include_classes)
for (class_name, handle) in handle_itr: for (class_name, handle) in handle_itr:
if class_name == 'Person': if class_name == 'Person':
if not self.has_person_handle(handle): if not self.get_person_from_handle(handle):
continue continue
elif class_name == 'Family': elif class_name == 'Family':
if not self.has_family_handle(handle): if not self.get_family_from_handle(handle):
continue continue
elif class_name == 'Event': elif class_name == 'Event':
if handle in self.unreferenced_events: if handle in self.unreferenced_events: