Skip to content

Using Deferred produces memory leak? #972

@Danbka

Description

@Danbka

I'm using Deferred to avoid N+1 problem, but with a big amount of entities, it produces out of memory error.

Even without buffer it allocates a lot of memory:

'resolve' => function($blogStory) {
    return new GraphQL\Deferred(function () {
        return true;
    });
}

Is there a way to use it more properly?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions