ONTAP Rest API Discussions

REST query performance

ukauf
1,162 Views

I basically need to get the metadata from all files on a volume, so I need to query every file. Somtimes I get roughly 2 results in a second and sometimes I get maybe up to 8 results in a second (FAS8300). Are there some settings on the Filer that can be tuned or any other ideas to speed this up?

2 REPLIES 2

RossC
1,083 Views

Hey @ukauf 

You may want to review this docs article - https://docs.netapp.com/us-en/ontap-automation/rest/object_references_and_access.html#accessing-an-object-using-an-object-property

 

It speaks to some performance issues under certain conditions, and that we do have a return_timeout value you can manage. Beyond that I am not aware of any additional tuning you can do, however another community member might have additional inputs here.

 

We have an #ontap-api channel on our Discord where you might also get an  answer to your query. More info about Discord here, https://community.netapp.com/t5/Digital-Support/The-Official-NetApp-Discord/ba-p/170915/ 

ukauf
943 Views

Thanks Ross, it is basically the

 

api/storage/volumes/volid/files/?return_metadata=true

 

that seems not to be optimized. Other queries return results much faster.

Public