MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Clarification for composite indexes #112818

Closed bexxx closed 1 year ago

bexxx commented 1 year ago

When using a query with a filter (name = "foo") and multiple sort orders (order by c.created asc, c.color), there must be two compound indexes added. One for the order and one for the filter with order (and in this order), otherwise querying the DB will fail with an error. Please clarify this in the docs. Also it is not really clear, that those property paths must be case sensitive.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

shaktisingh-msft commented 1 year ago

Hi @bexxx ,

Thanks for sharing this feedback. We will look into this and update as appropriate.

Hi @seesharprun,

Could you please look into this request, thanks.