PHP memory exhausted on a big mass update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • goingUp
    Junior Member
    • Sep 2024
    • 23

    #1

    PHP memory exhausted on a big mass update

    I did a mass update over thousands of records (adding Team) and process just silently stopped processing only 4k records. I found this error in log:
    ERROR: (0) Uncaught Exception Spatie\Async\Output\ParallelError: "PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/application/Espo/ORM/Executor/DefaultSqlExecutor.php on line 77 " at /var/www/html/vendor/spatie/async/src/Output/ParallelError.php line 11 :: /var/www/html/vendor/spatie/async/src/Output/ParallelError.php(11)

    Espo Version 9.1.8​, from official docker image.

    I know that this error is hard to fix, so I'm filing it as a feature request to be ready for a huge datasets . Perhaps ultimate solution can be unbuffered query, if framework allows it.​
Working...