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

fix(connection): don't query identifiers unless necessary #429

Merged
merged 3 commits into from
Mar 25, 2019

Conversation

benjie
Copy link
Member

@benjie benjie commented Mar 25, 2019

Connections can be used for aggregates such as totalCount. If no nodes/cursors are requested then pulling down identifiers is unnecessary and leads to slower totalCount and unnecessary live fields.

This PR stops connection planners from pulling down identifiers and connection resolvers from registering live records, instead leaving that to the parts of the schema (nodes / edges[].node / edges[].cursor) that do require that functionality.

Fixes #428

@benjie benjie merged commit 16785c4 into master Mar 25, 2019
@benjie benjie deleted the fix-efficiency-regression branch March 25, 2019 21:24
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

Successfully merging this pull request may close these issues.

Identifiers selected on totalCount only connection
1 participant