We have an OU that has over 20K members. When trying to export a person record taht belongs to that OU I run into a OutofMemory error. This is due to the person extract class also bringing the relationship with the OU with it and also the OU brings the relationship of every member of that OU with it as well.
What is the correct includethroughlevel setting to only bring the realtionship of this user to the OU rather than all?
Try eliminating the <include logicalentitytype = "OrganizationalUnit".../> from the extract class. If you haven't changed any information about the OU, you shouldn't need it; the <reference .../> takes care of the relationship between the person and his/her OUs.
Some of the default extract classes seem to err on the side of being too inclusive. This looks like one of them. See, for another example, the classes given for groups, which has the same type of issue: compare c