-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CosmosQueryRequestOptions excludes old FeedOptions #33
Comments
If there are no objections to adding |
@j82w do you see any issues with including it? |
I don't see an issue with including it for now, but this will likely have some breaking changes when the diagnostics are updated. |
We are still working on the v3 diagnostics design. I will create a github issue once we have a design. We want query and point operations to have the same story. In v2 they are completely different which doesn't provide the best user experience. These properties have been updated.
|
Is this something that will be resolved before GA release? In the meantime I guess a workaround would be using a handler to add the "x-ms-documentdb-populatequerymetrics" header to the request and read the "x-ms-documentdb-query-metrics" from the Response. |
Hi, is there an ETA on the |
Why are some of these properties no longer supported? We're migrating to the V3 API and confused why some of these properties have been removed from public access. |
@RobertDougan the PR is out to add QueryMetrics support. Hopefully we will have a release in next 2 to 3 weeks. @nh43de the only option that I'm aware of is the PartitionKeyRangeId and the query metrics. Query Metrics will be fixed in this PR. The reason PartitionKeyRangeId was removed is it's more of an internal implementation detail. It allows a small performance gain, but it's rather complex with lots of corner cases that don't show up until it's in production. It was decided it was better to remove the property since it caused so many issues with so little gain. Is there a specific property you need that isn't supported? |
Hey @j82w thanks for looking into this - we have some code that uses EnableCrossPartitionQuery in production currently. |
@nh43de EnableCrossPartitionQuery is enabled by default in v3. |
Is your feature request related to a problem? Please describe.
Not sure if this is a regression bug or feature request but the
PopulateQueryMetrics
feed option is not exposed as a member of theCosmosQueryRequestOptions
class.In fact there are a number of feed options which have been left out between the current client and this one. Have these options been left off for a reason or are they configurable else where?
Comparison between
FeedOptions
&CosmosQueryRequestOptions
Describe the solution you'd like
Are there any objections to adding
PopulateQueryMetrics
as an option toCosmosQueryRequestOptions
? I've tested and confirmed thatCosmosQueryResponse<T>
includes the metrics if set. This setting is really useful for performance tuning etc.The text was updated successfully, but these errors were encountered: