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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 2 3 5

long time taken to call terms and condation interface

the time taken to call terms and condation interface is around 24 seconds and it's not acceptable.

the code used :

ExtractionsContext _ExtractionsContext = ContextHelper.CreateExtractionsContext();
var availableFields = _ExtractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.TermsAndConditions);
var extractionRequest = new TermsAndConditionsExtractionRequest {
  IdentifierList =
    InstrumentIdentifierList.Create(
      new[] { new InstrumentIdentifier {Identifier = SecurityCode, IdentifierType =type },
      }, null, false),
    ContentFieldNames = new[] {"Company Name","Currency Code","ISIN","Issue Price",
      "Issuer Name","MIC List","MIC","SEDOL","SICC","SICC Sector Code","Ticker",
      "Trading Symbol","Trading Status","Official Name","Operating MIC" ,"RIC"}
};
var extractionResult = _ExtractionsContext.ExtractWithNotes(extractionRequest);
var extractedRows = extractionResult.Contents;

urgent matter

dss-rest-apidatascope-selectdssrfa
icon clock
10 |1500

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

Query reformatted for better code lisibility.

Hello @rshehata,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Hello @rshehata,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
13.7k 26 8 12

@rshehata, 2 comments:

  1. The code above contains a call to get the valid content field types. Is its output actually used ? Considering that the extraction request that follows it contains a hard coded list of fields, it looks like the call to get the valid content field types is not required (except if its output is used later on, outside of the scope of the snippet above). Removing it would gain a little bit of time.
  2. 24 seconds is not an unexpected time for such a request. DSS is a product that focuses on breadth and depth of data, it is not a real time product tuned to deliver extremely short response times

Edit: add comment:

For our support teams to look at the specifics of your call, it would be of advantage if you could give us a job ID or extraction ID, client session ID and/or correlation ID. Using that they could investigate further to understand if the 24 seconds you observed might be due to a specific issue. The job and extraction IDs are related to the requests you make. The client session ID (which you set yourself) and correlation IDs (which you receive) are described in the diagnostics help page. See also this query on the client session ID.

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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