Skip to content

Potential memory leaks? #1

@faizanakram99

Description

@faizanakram99

$this->storedEventRepository->save($storedEvent);

Maybe we can also inject entity manager and clear it after saving storedEvents here ^, say if the batch size is reasonably high (or/and if the command remains running for too long and keeps on publishing and saving events), all stored events will stay in unit of work and might eat up memory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions