Describe the bug
Opening a high-level record with a lot of linked records can cause Specify worker to crash.
Our (perhaps underpowered) test server will run out of memory (and hit high-cpu) trying to generate the Linked records query to run in the database. The database itself doesn't have issues running the query to get the linked records, but (our current running theory) generating the WHERE IN () for the Linked Records button maxes out the Specify worker and crashes our entire server.
To Reproduce
Steps to reproduce the behavior:
- Go to any of the trees at a high level (i.e. Life, Earth)
- Click to edit the record
- The linked records button will begin to automatically generate the results for the Linked records button
- Doing so causes the server to run out of memory until it SIGKILLs the process.
Expected behavior
I can't think of an expected behavior (other than not taking down the server), but maybe there should be a warning or limit to the number of records fetched when running the linked records query, or an optimisation to the backend query generation so it can handle larger records. Alternatively not running the linked query every time a record is opened but only when chosen would avoid accidentally clicked open on a high-level record and causing the issue.
Screenshots
Opening this record from the Geography tree broke our test server for ~30 minutes fetching the Linked Records. The actual query on the database ran quickly but creating it used all available memory. I am aware that it's probably not best to have >900k locality records but that's the way our instance is set up. We've noticed significant slowdowns on anything with >50k linked records, and crashes at >200k.
If applicable, add screenshots to help explain your problem.
Crash Report
There was no specific error message from Specify for this (other than a timeout message at one stage.
There logs for the container itself show that it runs out of memory and SIGKILLs:

System Information:
Specify 7 System Information - 2025-10-28T05_47_03.613Z.txt
Please fill out the following information manually:
- OS: Windows
- Browser: Chrome
- Specify 7 Version: 7.11.2.1
- Database Name: specify_staging
- Collection name: QLD Herbarium
- User Name: running on my own account [leo]
- URL: [e.g. https://ku_fish-v7.test.specifysystems.org/specify/workbench/215/]
Reported By
Queensland Herbarium
Additional context
Our test server is running RHEL 9, with the specify docker composition set up in Podman.
Let me know if there's any other information that would be helpful.
Describe the bug
Opening a high-level record with a lot of linked records can cause Specify worker to crash.
Our (perhaps underpowered) test server will run out of memory (and hit high-cpu) trying to generate the Linked records query to run in the database. The database itself doesn't have issues running the query to get the linked records, but (our current running theory) generating the
WHERE IN ()for the Linked Records button maxes out the Specify worker and crashes our entire server.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I can't think of an expected behavior (other than not taking down the server), but maybe there should be a warning or limit to the number of records fetched when running the linked records query, or an optimisation to the backend query generation so it can handle larger records. Alternatively not running the linked query every time a record is opened but only when chosen would avoid accidentally clicked open on a high-level record and causing the issue.
Screenshots
Opening this record from the Geography tree broke our test server for ~30 minutes fetching the Linked Records. The actual query on the database ran quickly but creating it used all available memory. I am aware that it's probably not best to have >900k locality records but that's the way our instance is set up. We've noticed significant slowdowns on anything with >50k linked records, and crashes at >200k.
If applicable, add screenshots to help explain your problem.
Crash Report
There was no specific error message from Specify for this (other than a timeout message at one stage.
There logs for the container itself show that it runs out of memory and SIGKILLs:
Specify 7 System Information - 2025-10-28T05_47_03.613Z.txt
Please fill out the following information manually:
Reported By
Queensland Herbarium
Additional context
Our test server is running RHEL 9, with the specify docker composition set up in Podman.
Let me know if there's any other information that would be helpful.