79456773

Date: 2025-02-21 08:50:35
Score: 1.5
Natty:
Report link

Finally! I got it!!! The issue was caused by Laravel’s event dispatcher, which was accumulating event listeners during batch inserts, leading to memory exhaustion. The fix was simply to disable the event dispatcher:

DB::connection()->unsetEventDispatcher();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Puka