Skip to main content
Answer

Support for 100 requests in Cognite-SDK

  • March 8, 2022
  • 3 replies
  • 143 views

Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img

Currently when fetching datapoints from multiple timeseries, the Python Cognite-SDK splits up the requests into one request per timeseries, while the underlying CDF API supports up to 100 timeseries per requests. This slows down fetching multiple timeseries, which is a problem when you display multiple timeseries (or aggregated of timeseries) in a frontend application. 

Best answer by Thomas Sjolshagen

Hi @Anders Albert,

I’ve added your feedback as a bug report in our internal ticketing system, against the Python SDK. Engineering will consider the impact of modifying the current behavior, and can update this topic once we know more about if/how and when we may be able to address it. 

Sorry about the delay in getting back to you!

3 replies

Forum|alt.badge.img

Hi @Anders Albert,

I’ve added your feedback as a bug report in our internal ticketing system, against the Python SDK. Engineering will consider the impact of modifying the current behavior, and can update this topic once we know more about if/how and when we may be able to address it. 

Sorry about the delay in getting back to you!


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Author
  • Seasoned Practitioner
  • May 2, 2022

Hi @Anders Albert,

I’ve added your feedback as a bug report in our internal ticketing system, against the Python SDK. Engineering will consider the impact of modifying the current behavior, and can update this topic once we know more about if/how and when we may be able to address it. 

Sorry about the delay in getting back to you!

Hi @Thomas Sjølshagen

I have ended up implementing the change myself and a PR is submitted for the Python SDK, which I expect will be reviewed today. 


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Author
  • Seasoned Practitioner
  • May 2, 2022

This is now released with version 2.47.0 of the cognite-sdk.