Closed Umar-Farooq-Shafi closed 1 year ago
You shouldn't use a BulkAction with that many records, because the BulkAction needs to send all 40k ids of your records to the backend which is what's probably causing the browser to crash/get stuck.
Best to use a Table Header Action in this case.
@pxlrbt Thanks, it's working.
What is the best size withChunkSize
?
What is the best size
withChunkSize
?
I don't really now. I'd say something around 1000?
@pxlrbt The issue with the Table Header Action is that I have to filter out the record based on the date range but it's not applying on the Export. it's downloading all the records.
You could use ->modifyQuery(fn ($livewire) -> )
to apply your filters. Haven't implemented that one yet apparently. But somebody else reported an issue with Depedency Injection into Closures. So for now there might be no solution to this
in the getQuery
function I print out the $this->getLivewire()
.
Is there any way to get filters
from this?
->tableFilters
should be what you are looking for. Depending on your version there should also be methods to get the table query.
$this->getLivewire()->tableFilters
giving me null.
I'm using Filament v3
Solve by using cache.
Hey, I've data about 40K when I try to export the file. The browser got stuck and didn't respond even when I tried to export using
->queue()
and->withChunkSize()
and set the size from 100 to 20K but it didn't work.