bug: graphql node query with only count field is slow when you have a large number of this kind of node in the database #4454
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Infrahub version
0.16.0
Current Behavior
Executing the following GraphQL query is really slow (several minutes) , when you have 3k instances of InfraInterfaceL2 in the database
Executing the same query, adding one additional field (attribute of the node) resolves instantly:
Expected Behavior
A GraphQL query using just the count field for a particular node, should resolve much faster.
Steps to Reproduce
inv dev.start demo.load-infra-schema
infrahubctl run <script.py>
Additional Information
No response
The text was updated successfully, but these errors were encountered: