Inhibit haystack update during import #23

Closed
opened 2021-02-12 12:23:41 +01:00 by nik · 3 comments
Owner

Haystack currently updates the haystack index for every saved object upon receiving a post_save signal.

We should inhibit this during mass import, as it clogs up the Celery workers with thousands of jobs.

Part of the solution would be to refactor the use of database transactions throughout the LDAP import.

Haystack currently updates the haystack index for every saved object upon receiving a `post_save` signal. We should inhibit this during mass import, as it clogs up the Celery workers with thousands of jobs. Part of the solution would be to refactor the use of database transactions throughout the LDAP import.
Author
Owner

mentioned in issue AlekSIS-Core#371

mentioned in issue AlekSIS-Core#371
Author
Owner

mentioned in merge request !104

mentioned in merge request !104
Author
Owner

Celery tasks are globally delayed until commit now, so anything that is wrapped in a transaction (like the various parts of the LDAP import) are as well.

Celery tasks are globally delayed until commit now, so anything that is wrapped in a transaction (like the various parts of the LDAP import) are as well.
nik closed this issue 2021-06-18 15:52:27 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-LDAP#23
No description provided.