Skip to content

Commit

Permalink
update readme re: memory; change ancestor check to 25 at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
jdshaw committed Feb 19, 2020
1 parent 71af8e7 commit 2520a0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions backend/job_runners/aspace_sitemap_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2520a0e

Please sign in to comment.