This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Is there anyway to query Orion database rows in chunks using orionsdk?

I am using orionsdk to query the database for data. One issue I am running into issue using below query:

SELECT NodeID, DownloadTime, Config
FROM NCM.ConfigArchive
Order By DownloadTime

It throws below error:

[Exception of type 'System.OutOfMemoryException' was thrown]

Is there any way I can query this data in chunks like first 0-1000 rows, then 1001-2000 and so on.

I tried LIMIT, FETCH and FETCH NEXT but they do not work in SWQL Studio.

Any solution to this issue?