Askedio/laravel-soft-cascade

Deleting Model with lots of relations exhausts memory.

Opened this issue · 1 comments

Doing some testing with the softCascades and I delete a UserType Model with 9 relations. Some of those relations have 2-3 relations themselves, most have none. All relations/models have softDeletes added/enabled.

When I try deleting the vendor, it eventually dies out with Allocated memory exhausted. Currently its at 4GB, but there has to be a better/more efficient way? Or am wrong in thinking how this should work?

You are free to make a PR with the improvement. I'm not using package anymore and only I will review PR's.