-
Notifications
You must be signed in to change notification settings - Fork 47
more SQLs then expected #231
Comments
Hey @tasiotas , I think that it is because the name You can try 2 changes in there:
@gql.django.connection(name="products")
def product_set(self) -> List["ProductType"]:
return self.product_set.all() Let me know if any of those solutions works for you. Otherwise I might need some more info to understand what might be going on there |
unfortunately both solutions didn't work. Will try to get you a repro. Thanks! |
A repro will help a lot to understand how to properly optimize this :) |
got the repro. Im new to Poetry, didn't know how to update this lib to latest, so its at 2.4.0 without optimizer I have 3 queries, with optimizer I get 6. query MyQuery {
project(name: "one") {
milestones {
edges {
node {
name
}
}
}
}
} |
Hey @tasiotas , I just released a new version, which has a major refactoring of the relay integration by using the official one instead. Could you check if your issue still happens in that version? I think some of the changes I've made should have fixed this. |
unfortunately, its still the same behavior in v3 |
Hi,
Here is my schema and query. When I run the query, I get some extra SQL queries in Debug Toolbar, that seem unnecessary. Not sure what is invoking them and how to avoid them.
3rd query gets me what I need (product's name), what are the queries below it?
Here are 4 last lines from Debug Toolbar stack tract:
The text was updated successfully, but these errors were encountered: