Skip to content

Codegen: deduplicate fragments #6588

@martinbonnin

Description

@martinbonnin

Description

Right now, each operation document embeds its own fragments. If several operations reference the same fragment, this fragment is going to end up being stored twice in the bycode.

We could store it only once and compute the resulting document at runtime.

If we're doing this, we should make sure that the algorithm matches the build-time persisted queries algorithm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions