cancel
Showing results for 
Search instead for 
Did you mean: 

Rest API Requests are slow

Rest API Requests are slow

Hi All,

 

We are using the third party vendor for stock & product management.

They are updating the custom attributes in Magento 2 using Rest API calls.

 

for example:

PUT index.php/rest/all/V1/products/{PRODUCTSKU}
Data sent = {"product":{"custom_attributes":[{"attribute_code":"custom_attribute_code","value":"123456789"}]}}

 

This request takes around 8-10 seconds to get the response.

It takes more than 1 hour to update 500 records.

 

Can you please suggest how to imporve this response time.

 

2 REPLIES 2

Re: Rest API Requests are slow

@Girish SH 

 

Do you have Index set to "update on save"? If yes please change it to "update by schedule" and make sure cron is set up. It will improve performance and make sure cache also enabled. 

Manish Mittal
https://www.manishmittal.com/

Re: Rest API Requests are slow


 

Do you have Index set to "update on save"? If yes please change it to "update by schedule" and  192.168.1.1 make sure cron is set up. 192.168.100.1  It will improve performance and make sure cache also  jpg to pdf enabled. 


Do you have Index set to "update on save"? If yes please change it to "update by schedule" and make sure cron is set up. It will improve performance and make sure cache also enabled.