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

Remote schema N+1 issue with a Hasura Remote Schema #10673

Open
pari-m opened this issue Feb 7, 2025 · 1 comment
Open

Remote schema N+1 issue with a Hasura Remote Schema #10673

pari-m opened this issue Feb 7, 2025 · 1 comment
Labels
k/enhancement New feature or improve an existing feature

Comments

@pari-m
Copy link

pari-m commented Feb 7, 2025

Batch remote schema requests into one sql request

N+1 problem with a remote schema in a Hasura implementation. Specifically, a remote relationship is defined between a local table(employee) and a remote table (employeelanguages). The sample below causes multiple individual requests to the remote schema instead of a single batched request:


query Employee {
employee {
name
employeelanguages {
id
name
}
} 

Describe the solution you'd like

Make one SQL query to the employeelanguages instead of multiple queries.

Describe alternatives you've considered

@pari-m pari-m added the k/enhancement New feature or improve an existing feature label Feb 7, 2025
@manasag
Copy link
Contributor

manasag commented Feb 7, 2025

Is this v2 or DDN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants