From 2520a0e039eed9e94bdcd6036c886eaf0a32ae25 Mon Sep 17 00:00:00 2001 From: Joshua Shaw Date: Wed, 19 Feb 2020 07:53:53 -0500 Subject: [PATCH] update readme re: memory; change ancestor check to 25 at a time --- README.md | 2 ++ backend/job_runners/aspace_sitemap_runner.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a15b19..a7199d3 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ AppConfig[:plugins] = ['some_plugin','aspace_sitemap'] ### Note For users running ArchivesSpace versions older than v2.6.0, please note that slug related options are not available. +Institutions with large numbers of published objects may need to increase the memory alloted to the application. See http://archivesspace.github.io/archivesspace/user/tuning-archivesspace/ + ## What does it do? The plugin adds a new job that generates a sitemap (at least one sitemap with a sitemap index) for the PUI. The file(s) can be downloaded and placed on a server of your choice for submission diff --git a/backend/job_runners/aspace_sitemap_runner.rb b/backend/job_runners/aspace_sitemap_runner.rb index faf701e..1ba4c0b 100644 --- a/backend/job_runners/aspace_sitemap_runner.rb +++ b/backend/job_runners/aspace_sitemap_runner.rb @@ -87,9 +87,9 @@ def run @job.write_output('Checking for unpublished ancestors') - # use 50 for group size, though maybe tune this depending on memory? + # use 25 for group size, though maybe tune this depending on memory? # build a list of objects with unpubbed ancestors - has_ancs.each_slice(50).with_index do |group,i| + has_ancs.each_slice(25).with_index do |group,i| if i % 400 == 0 && i != 0 @job.write_output('Still checking for unpublished ancestors') end