eoncode
Running Bulk Action with 'Select All' times out or runs out of memory
Hello,
I have a table with lots of rows and running a bulk action while 'Select All' is checked wither returns a timeout error (from cloudflare) or an internal server error where the PHP process runs out of memory.
In the action, I'm simple chunking the selected records and dispatching a job for each chunk.
I realise that the cause of the issue is the fact that filament loads all the selected records into memory before passing them down to the action's closure.
If this isn't an issue the maintainers want to jump on quickly, 'm thinking of modifying this behaviour such that only the keys/PK of the selected table items are passed down, basically something more memory efficient. However, so far, I've had no luck finding where filament processes the action callback.
15 replies