Performance issue with BulkAction : selectedRecords (only IDs, not Eloquent?)

Hi guys, I'm working on a Filament app and I need to add some exports features. We have a lot of tables and data, so both the official Filament Export action and Dennis Koch package are not suitable for us. I'm using Laravel Excel and DB Query without Eloquent, but I wish I could offer my users a way to filter the data before export them. For that, I'm trying to use BulkAction, however the $selectedRecords is an Eloquent collection and when using the Select All it makes my app crashes. Is that a way for the table select option to only retrieve an array of ID and not load the entire Eloquent collection? I know this is a very specific request and maybe it's not possible, but I just want to be sure before switching to a custom solution.
1 Reply
Benjamin
BenjaminOP2d ago
A possibility to fix it without ruling out Eloquent could be to use chunk() ? Maybe it's already the case, idk.

Did you find this page helpful?