【Purview】DiscoveryClient query performance issue
Mofei Zhuang
120
Reputation points Microsoft Employee
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:
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
Microsoft Security | Microsoft Purview
A unified data governance solution that helps manage, protect, and discover data across your organization
Sign in to answer