Query Conversion to Point Reads

Sai Praneeth Eranti 150 Reputation points
2024-05-14T08:35:36.7933333+00:00

Hello ,

Is there a way to identify eligible queries that can be transformed into point read queries using metrics or a Kusto query?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,470 questions
{count} vote

Accepted answer
  1. ShaktiSingh-MSFT 14,076 Reputation points Microsoft Employee
    2024-05-20T05:40:40.97+00:00

    Hi Sai Praneeth Eranti •,

    Below is the reply received internally:

    I think you can enable the clear query text in CDBDataPlaneRequests? If so, filtering for queries where the query text contains ".id" and the document count returns is always 0 or 1 is probably be a good way to filter to those queries worth double-checking.

    Thanks


2 additional answers

Sort by: Most helpful
  1. ShaktiSingh-MSFT 14,076 Reputation points Microsoft Employee
    2024-05-15T08:59:04.1266667+00:00

    Hi Sai Praneeth Eranti •,

    Thanks for your patience.

    I have checked with the internal team and has got below reply:

    It can be identified via data plane requests:

    Azure Monitor Logs reference - CDBDataPlaneRequests | Microsoft Learn

    by checking OperationName and RequestResourceType.

    Thanks


  2. Sai Praneeth Eranti 150 Reputation points
    2024-05-21T09:25:42.1966667+00:00

    Hi @ShaktiSingh-MSFT

    In "CDBDataPlaneRequests" , there is no column which gives query text . I think it should be "CDBQueryRuntimeStatistics".

    0 comments No comments