Open rkorytkowski opened 2 years ago
@snyaggarwal a few low hanging fruits:
Can we discard a part_list from parts after it is sent to a queue https://github.com/OpenConceptLab/oclapi2/blob/48eafddeb7b4118757ee631cc1a22545e1746ab1/core/importers/models.py#L821 ?
Can we clear content and input_list once makeParts is done?
https://github.com/OpenConceptLab/oclapi2/blob/48eafddeb7b4118757ee631cc1a22545e1746ab1/core/importers/models.py#L722
@rkorytkowski Thanks for the suggestions. added both.
@snyaggarwal a few low hanging fruits:
Can we discard a part_list from parts after it is sent to a queue https://github.com/OpenConceptLab/oclapi2/blob/48eafddeb7b4118757ee631cc1a22545e1746ab1/core/importers/models.py#L821 ?
Can we clear content and input_list once makeParts is done? https://github.com/OpenConceptLab/oclapi2/blob/48eafddeb7b4118757ee631cc1a22545e1746ab1/core/importers/models.py#L722
Thanks @snyaggarwal, please see my comment on the first commit.
@rkorytkowski Fixed
@snyaggarwal is this work complete? can we close this?
Some part of this was completed long time back. But overall some big chunks of work is still pending
I have added few fixes here:
Currently the whole import file is stored in memory and passed around to workers. It uses memory on Redis, but also in all individual workers processing it i.e. main worker and concurrent workers.
Things to consider: