aboutsummaryrefslogtreecommitdiffstats
path: root/script/install-as-user
diff options
context:
space:
mode:
authorMark Longair <mark@mysociety.org>2013-10-09 15:08:23 +0100
committerFOI archive email account <foi@titan.ukcod.org.uk>2013-10-09 15:13:19 +0100
commit280b3fd57e6f21d1cd09548411fc1dafd794cc1d (patch)
tree7fccb88412c5dc9ff8a05c98be3cab46f4b2e04a /script/install-as-user
parent1f6771c1545e320437a2fbecf7ddd0f8abdf77d1 (diff)
Reduce the memory consumption of rake stats:update_public_bodies_stats
This task was taking a huge amount of memory, even when fetching the InfoRequest objects with find_each. With an additional find_each for public bodies (10 at a time) and reducing the batch size for info requests to 200 at a time, the memory size of this rake task is kept down to about 400MB.
Diffstat (limited to 'script/install-as-user')
0 files changed, 0 insertions, 0 deletions