mysociety/popit-api — pull request #50 by hecticjeff (2014-04-15 09:40:02+00:00)
Title: Fix membership indexing issues

When indexing a large number of memberships the process was getting
killed with an out of memory error. This is because for each membership
the related person, post and organization was being looked up, then in turn
for each related person, post or organization their memberships were being
looked up.

This change skips indexing person, post and organization memberships
when embedding them in an indexed membership.

Without this change we can't reindex memberships, which prevents the changes from https://github.com/mysociety/popit-api/pull/46 going live.

Fixes https://github.com/mysociety/popit/issues/379