dumps of large jsons run into MemoryError causing migrations of large databases to fail #3716
Labels
topic/archive
topic/backup
topic/database-migrations
type/feature request
status undecided
type/performance
Issue related to how quickly AiiDA works
Hi. I just tried to migrate a 27 GB database from the schema version 1.0.23 to 1.043 using the aiida 1.0.1 release.
The migration fails due to a json dump which runs out of memory (16 GB RAM on machine plus 16 GB swap):
This problem is known for large json dumps and since this code is in the common module of AiiDA it might happen in other cases (import/export) too. I suggest a solution along the line:
https://stackoverflow.com/questions/24239613/memoryerror-using-json-dumps
i.e stream json instead of full dump in memory, or at least for large json dumps.
The text was updated successfully, but these errors were encountered: