You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's possible to specify include and exclude when querying a node or a group of nodes from Infrahub.
Both methods are currently working on top of the default set of fields, meaning that
include can be used to add fields that are not included by default
exclude can be used to remove fields that are included by default
The issue with the current behavior is that the performance of a given query change over time if the schema changes and if more fields are being queried by default. there is no way to control that. this can be especially impacting if the queyr is also using prefetch_relationships
The proposal is to change the behavior of include to only include the fields that have been specified in include this way a query using include will be predictable and won't be impacted by future schema changes
The text was updated successfully, but these errors were encountered:
Component
Python SDK
Task Description
Currently it's possible to specify
include
andexclude
when querying a node or a group of nodes from Infrahub.Both methods are currently working on top of the default set of fields, meaning that
include
can be used to add fields that are not included by defaultexclude
can be used to remove fields that are included by defaultThe issue with the current behavior is that the performance of a given query change over time if the schema changes and if more fields are being queried by default. there is no way to control that. this can be especially impacting if the queyr is also using
prefetch_relationships
The proposal is to change the behavior of
include
to only include the fields that have been specified ininclude
this way a query usinginclude
will be predictable and won't be impacted by future schema changesThe text was updated successfully, but these errors were encountered: