From d04e908358ce515fc10ae7c4f88c8181f02a7db4 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Thu, 29 Jan 2009 05:17:10 +0000 Subject: [PATCH] ENHANCEMENT: Ticket 2756: Newsletter performance problem, run out of memory. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70956 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/MemberTableField.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/MemberTableField.php b/code/MemberTableField.php index 46da36fb..38e3b252 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -326,7 +326,9 @@ class MemberTableField extends ComplexTableField { $this->sourceSort ); - $this->unpagedSourceItems = $this->group->Members('', '', $this->sourceFilter, $this->sourceSort); + // Because we are not used $this->upagedSourceItems any more, and the DataObjectSet is usually the source + // that a large member set runs out of memory. we disable it here. + //$this->unpagedSourceItems = $this->group->Members('', '', $this->sourceFilter, $this->sourceSort); $this->totalCount = ($this->sourceItems) ? $this->sourceItems->TotalItems() : 0; return $this->sourceItems;