I am using Azure Functions to query data from the Azure Search (Multi-Indexes for Multi-Countries). Currently, I am simply creating an object of SearchIndexClient inside the using statement by passing QueryKey, ServiceName and IndexName and querying data from Azure Search. Thus for each request, an object of SearchIndexClient is created, query execution happened and then object disposed. Is it the right approach from performance point of view?
If not, then what improvements/best practices can i use in the application to increase the performance on the production environment. Do i need to use any design pattern for object creation?
I observed that currently query execution takes more time than object creation.
Any suggestion will be appreciated. Thanks in advance!!!
Aucun commentaire:
Enregistrer un commentaire