Skip to content

Decrease memory requirements for /offerings/searchxml #83

@adamfranco

Description

@adamfranco

Version 1 of the catalog ran with 64M of memory for each process, a pretty light footprint. Most of version 2 works fine with this memory limit, but requests with large result sets like
https://catalog.middlebury.edu/offerings/searchxml/catalog-MCUG/term-202520?enrollable=true&type%255B%255D=genera%253Aoffering-LCT&type%255B%255D=genera%253Aoffering-SEM&type%255B%255D=genera%253Aoffering-LAB&type%255B%255D=genera%253Aoffering-DSC

Fail with 64M and 128M of memory. Bumping to 256M gets it working, but there is room for optimization here. My hunch is that the increase is due to version 2 loading the offering data into an intermediary data structure before freeing the query results, effectively duplicating the total data in-memory, though this could be wrong.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions