You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When dry-running the October batch of Cordaid IATI activities, the cordaid_project_upload.py script runs extremely slow. Investigation shows that the addition of the sync_owner field in the project resource is the cause of this, it looks to be because the the sync_owner uses the OrganisationResource. The problem with the OrganisationResource is that it inherits from ConditionalFullResource and for reasons I don't fully understand this triggers a cascade of object creations causing a massive slowdown.
One solution is to implement an IATIOrganisationResource and a couple of other resources that inherit from the standard Tastypie ModelResource, but an initial test of that didn't work and debugging it is hard. Ther is however an alternative solution and that is to not implement the sync_owner field in the IATIProjectResource at all, since it's only used to set the field to Cordaid. Instead the setting of that field can be made in the post_import step of the process.
The text was updated successfully, but these errors were encountered:
The IATIProjectResource.sync_owner field is causing the Cordaid IATI
import to be very slow, so we're removing the field and setting the
ownership in the post import step instead.
When dry-running the October batch of Cordaid IATI activities, the cordaid_project_upload.py script runs extremely slow. Investigation shows that the addition of the sync_owner field in the project resource is the cause of this, it looks to be because the the sync_owner uses the OrganisationResource. The problem with the OrganisationResource is that it inherits from ConditionalFullResource and for reasons I don't fully understand this triggers a cascade of object creations causing a massive slowdown.
One solution is to implement an IATIOrganisationResource and a couple of other resources that inherit from the standard Tastypie ModelResource, but an initial test of that didn't work and debugging it is hard. Ther is however an alternative solution and that is to not implement the sync_owner field in the IATIProjectResource at all, since it's only used to set the field to Cordaid. Instead the setting of that field can be made in the post_import step of the process.
The text was updated successfully, but these errors were encountered: