What is the best approach to work with large datasets in PHP / Laravel? [closed]

  laravel, php

I have written an importscript in Laravel8. I use Laravel Command and the CLI to start the import. For smaller datasets (<1000) it works quite well. But with more than 50,000 records nothing happens. Most likely I would have to set the php memory_limit up at this point. I can do that, but I would like to try a programmatic solution at this point. Do you have a theoretical idea. I don’t need code snippets but what functions / pattern etc can help here.

Source: Laravel

Leave a Reply