Questions


Related Questions:


Questions

Asked By :  vedika rana
Answers1

youve created a sql query in the net sdk and received the

You've created a SQL query in the .NET SDK and received the response in an object of type FeedResponse<>. Which property of the feed response should you use to determine how many request units were used per page of results?

-IndexMetrics

-RequestCharge

-Diagnostics




Answers :

0

In the .NET SDK, when you receive a response in an object of type FeedResponse<>, you should use the RequestCharge property to determine how many request units were used per page of results.

Here’s a brief explanation of each property for context:

  • IndexMetrics: Provides detailed information about index utilization and performance.
  • RequestCharge: Indicates the number of request units consumed by the operation, which is what you're looking for.
  • Diagnostics: Contains debugging information and diagnostics details related to the request.

So, in your case, you should use the RequestCharge property to determine the request units used:

double requestUnitsConsumed = feedResponse.RequestCharge;

This value represents the cost of the query in terms of request units (RUs).


Answered By

Shelby Mitchell

Your Answer



XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Write your answer, be as detailed as possible...

Reply as a guest

Required but never shown

Try Now AI powered Content Automation