Skip to content
Snippets Groups Projects
Verified Commit 61df7fe9 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Identified performance bottleneck.

parent 43a23d05
No related branches found
No related tags found
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!171sav/spss converter
Pipeline #51346 passed with warnings
......@@ -646,8 +646,8 @@ class Crawler(object):
registered_identifiable = self.identifiableAdapter.get_registered_identifiable(record)
if registered_identifiable is None:
return False
refs = self.identifiableAdapter.get_identifying_referencing_entities(referencing_entities,
registered_identifiable)
refs = self.identifiableAdapter.get_identifying_referencing_entities(
referencing_entities, registered_identifiable)
if any(el is None for el in refs):
return True
......@@ -671,6 +671,11 @@ class Crawler(object):
So the returned mapping maps ids of entities to the ids of objects which are referring
to them.
.. todo::
This method takes about 2/3 of the time of synchronize(), it might be a good
optimization candidate.
"""
# TODO we need to treat children of RecordTypes somehow.
references: dict[int, dict[str, list[Union[int, None]]]] = {}
......
......@@ -219,3 +219,5 @@ autodoc_default_options = {
'member-order': 'bysource',
'special-member': ["__init__"],
}
todo_include_todos = True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment