For a deeper look into our DataScope Select SOAP API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 1 0 1

DDS REST API performance degradation

I'm using the DDS REST API to perform a search for all available equity options. I'm expecting close too 200k rows in the response. The result is paginated and the issue I'm seeing is that the further I get along with fetching pages, the slower the response gets. e.g. fetching page 1 takes around 16 seconds, wheras fetching page 320 takes 53 seconds. The attached graph shows the slow down compared to ideal linear scaling.

At this rate it looks like I won't be able to fetch the result in a reasonable amount of time.

is there a better way of approaching a queary like this one?

cusersu23732desktopreuters-dds-performance.png

dss-rest-apidatascope-selectdssrest-apiperformance
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
465 3 5 3

Hi @erik.gomersbach,

Although it's not ideal, this behavior is expected. The paging capability for searches has not been fully implemented which is the reason for the performance degradation. The best practice, until we fully support paging for searches, is to specify the page size (i.e. 200K) for your search requests. See the Key Mechanisms Server Driven Paging documentation section "Preferences". The "Retrieving all pages" example shows how to set this in the .Net SDK. Please be sure to only set this for the search and reset after the request is complete or create a new context (if using the .Net SDK).

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thanks Troy, increasing the page size solved the issue.

Click below to post an Idea Post Idea