Hello team,
We are trying to use the data modeling query instances SDK method.
client.data_modeling.instances.query(query)
our query is:
query {
"with": {
"Min_15_50ts": {
"nodes": {
"filter": {
"and": [
{
"hasData": [
{
"type": "view",
"space": "QA_Test_Space",
"externalId": "Min_15_50ts",
"version": "3a62f20104e445"
}
]
},
{
"in": {
"property": [
"QA_Test_Space",
"Min_15_50ts/3a62f20104e445",
"entity"
],
"values": [
"QA_Perf_WELL_1",
"QA_Perf_WELL_2",
"QA_Perf_WELL_3",
"QA_Perf_WELL_4",
"QA_Perf_WELL_5",
"QA_Perf_WELL_6",
"QA_Perf_WELL_7",
"QA_Perf_WELL_8",
"QA_Perf_WELL_9",
"QA_Perf_WELL_10",
"QA_Perf_WELL_11",
"QA_Perf_WELL_12",
"QA_Perf_WELL_13",
"QA_Perf_WELL_14",
"QA_Perf_WELL_15",
"QA_Perf_WELL_16"
]
}
}
]
},
"chain_to": "destination",
"direction": "outwards"
},
"limit": 1000
}
},
"select": {
"Min_15_50ts": {
"sources": [
{
"source": {
"space": "QA_Test_Space",
"external_id": "Min_15_50ts",
"version": "3a62f20104e445",
"type": "view"
},
"properties": [
"timeseries_1",
"entity"
]
}
]
}
},
"cursors": {
"Min_15_50ts": null
}
}
for this we are getting the following error:
cognite.client.exceptions.CogniteAPIError: Graph query timed out. Reduce load or contention, or optimise your query. | code: 408 | X-Request-ID: 8d863ca0-3605-93ac-a893-a7c80b7fae8b
We are using 7.38.2 version of the SDK.
Kindly let us know how we can make this run.