SyliusGiftCardPlugin icon indicating copy to clipboard operation
SyliusGiftCardPlugin copied to clipboard

Potential memory leak

Open Roshyo opened this issue 3 years ago • 0 comments

In Setono\SyliusGiftCardPlugin\Controller\Action\GiftCardBalanceAction controller (and same in API when merged to master), we have a performance issue regarding huge amount of GiftCards due to this code block:

$giftCardBalanceCollection = GiftCardBalanceCollection::createFromGiftCards(
    $this->giftCardRepository->findEnabled()
);

We should come up with a solution to avoid that.

Roshyo avatar Sep 01 '21 07:09 Roshyo