Azure / Azure/azure-sdk-for-python

[Cosmos] make queries fetch query plan in every query

Open
#38,577 1 comment 0 reactions 1 assignee Claimed by @simorenoh View on GitHub
Cosmos
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

Currently the SDK attempts to directly send the queries to the backend, and only upon receiving a 400/1004 will it request the query plan. We should consider always fetching the query plan pre-emptively to save on the additional request that gets sent and fails for most queries being sent. It is my understanding that the .NET SDK behaves this way by default as well.

Follow-up item to https://github.com/Azure/azure-sdk-for-python/pull/38275.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.