i have a problem when i'm trying to export 3000 records ,
when i hit the download button , the siteweb will crash !
i also tried to increase memory limit ( -1 ) but i still get same problem !
@> Joe Your download button should probably dispatch a queue job to generate the file (PDF, XLS or whatever) and then send the the download link to the user. Otherwise you’re going to hit timeouts or memory limits are you’ve found whilst your server’s churning through thousands of records and then trying to build a file in memory.
@martinbean yes the queue system solve the problem , but when i fire a job i don't know when the operation will finish , so every time the user hit the download btn i go check if there is a file if yes download it otherwise no,
i think tha's not good right ?
ps: i dispatch the job in the service provider
@Snapey yes , the browser show "Page Unresponsive" message , i try the queue system of laravel and that's fix the problem,
so i guess that the browser has a TTL ( time to leave ) let's say 3s so if the operation in the server take more than 3s without any response the browser will crashe.