【Purview】DiscoveryClient query performance issue

Mofei Zhuang 120 Reputation points Microsoft Employee
2026-02-04T22:07:34.3633333+00:00

Hi Team,

 I’d like to ask about a query issue with `GetDiscoveryClient()`. Based on my understanding, `GetDiscoveryClient()` should return indexed data directly and shouldn’t trigger a secondary query, so I expected it to be quite fast. However, one of my queries, which only retrieves a single entity each time, takes around 3 seconds. I feel this performance is a bit slow.

Here is the condition for my Purview account, I think it doesn't reach the maximum limit of an account:Screenshot 2026-02-05 085429

What I searched is a Custom Define Entity, only have few attributes, here is the structure :

[

{

"Name": "ServiceId",

"TypeName": "string",

"IsOptional": true,

"Cardinality": "SINGLE",

"ValuesMinCount": 0,

"ValuesMaxCount": 1,

"IsUnique": true,

"IsIndexable": true

},

{

"Name": "ServiceName",

"TypeName": "string",

"IsOptional": true,

"Cardinality": "SINGLE",

"ValuesMinCount": 0,

"ValuesMaxCount": 1,

"IsUnique": true,

"IsIndexable": true

},

]

And here is the query I'm using :

var filters = new List<object>

{

new { typeName = "Service_Custom_Entity" },

new { attributeName = "ServiceId", @operator = "eq",  attributeValue = "XXXXXX"

};

var config = new QueryConfig

{

Limit = 1000,

Filter = BinaryData.FromObjectAsJson(new

{

    and = filters

}),

};

DataMapClient.GetDiscoveryClient().QueryAsync(config);

What I’d like to understand is whether a response time of around 3 seconds for this kind of single-entity query is within Purview’s SLA.

Microsoft Security | Microsoft Purview
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.