FilamentF
Filament11mo ago
pratik

Slow BulkExport Action

9914 records selected
Exporting selected records using exporter from bulkActions is slow.
while exporting those records using header's exporter is fast.
slow : The actual export is fast but the time it takes for bulk exporter to show the export modal is like 30s and the export action is glued to the screen and moves with scroll like it's absolute.
Am I doing something wrong here ?
->headerActions([
                ExportAction::make()
                    ->exporter(OrderExporter::class)
                    ->modifyQueryUsing(function (Builder $query) {
                        return $query
                            ->withoutGlobalScopes()
                            ->where('organization_id', auth()->user()->organization_id);
                    }),
            ])
            ->bulkActions([
                Tables\Actions\BulkActionGroup::make([
                    ExportBulkAction::make()
                        ->exporter(OrderExporter::class)
                        ->modifyQueryUsing(function (Builder $query) {
                            return $query
                                ->withoutGlobalScopes()
                                ->where('organization_id', auth()->user()->organization_id);
                        }),
                ]),
image.png
Was this page helpful?