This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

chris10207
chris10207

My current export is reaching the php timeout. Right now, the number of record is about 60K, and will keep increasing so my plan is not to increase the timeout forever but look into providing my client the possibility to export his data by chunk of records. So I look into the ExportModel and ImportExportController class, but didnt find a way to extend the database request.

any experience on this matter please ?

chris10207
chris10207

so idiot i am, it was right in front of my noise. basically you can do it directly in the exportData() method provided by the ExportModel class it will look something like this in my case

 $result = self::make()
                ->with([
                    'project_type'
                ])
                ->skip(10)
                ->take(5)
                ->get()
                ->toArray();

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.