I will allready try to lessen the memory impact of the function by not getting a dao for all memberships, but by extending the query before creating a DAO.
Thank you for raising an issue to help improve CiviCRM. We're sorry about this, but this particular issue has gone unnoticed for quite some time.
We would like to ask you to help us out and determine whether this issue should be kept open:
If this issue is reporting a bug, can you attempt to reproduce on the latest version of CiviCRM?
If this issue is proposing a new feature, can you verify whether the feature proposal is still relevant? Did it get the concept-approved label? Have other people also shown interest? Could it be implemented as an extension?
If yes,
Is it something that you could help implement, either by sending a patch or hiring someone who can?
Please feel free to comment or re-open the issue. We understand that automatic responses are annoying, but as the project evolves, we need a bit of help to triage and prioritise the most relevant issues.
Thank you for your help
P.S. This is an automated message. See infra/gitlab issue 20.