Skip to content

GraphQL parse/validation caching  #3077

Closed
@dotansimha

Description

@dotansimha

Since GraphQL parse and validate phase are static (does not depend on the user input like variables), we can implement caching for both phases (for parser: String => query::Document, for validation: String | query::Document => Vec<ValidationError>).

This might be more relevant once #3057 lands, because if we'll add more validation rules it might add some (probably minimal) overhead.

Usually it's implemented with LRU.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions