Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore using GraphQL lookahead to slim down calls to ElasticSearch #1080

Open
jrhoads opened this issue Jan 5, 2024 · 0 comments
Open

Explore using GraphQL lookahead to slim down calls to ElasticSearch #1080

jrhoads opened this issue Jan 5, 2024 · 0 comments

Comments

@jrhoads
Copy link
Contributor

jrhoads commented Jan 5, 2024

By default, most of our GraphQL calls are implemented by call to Elasticsearch with extensive aggregations turned on.
Many times we do not use the results of these aggregations.

GraphQL lookahead allows us to peak into the structure of a graphql query.

We might be able to use this to see if certain fields/aggregations are necessary for the GQL results. This would allow us to potentially drop those fields from the ElasticSearch Query

https://graphql-ruby.org/queries/lookahead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant