Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of me

default discord avatar
botabit2 years ago
4

When trying to build edit 60000 posts I'm getting an out of memory error

  • discord user avatar
    denolfe
    2 years ago

    How big are the documents, and what are the specs of your server? We likely load them all into memory. You should be able to do some calculations on whether your server can handle such an operation.

  • default discord avatar
    botabit2 years ago

    It's likely a resource issue on the server, is there any way to do it without loading xxx thousand documents into memory?

  • discord user avatar
    denolfe
    2 years ago

    Not how it is currently implemented. You'd likely need to batch them programmatically in manageable batch sizes.

  • default discord avatar
    botabit2 years ago

    Thanks

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.