As the title mentions, I am writing a program to update inventory automatically every weekday. The program is working with no problem; however, it is very inefficient. I would like to ask my fellow developers in Shopify community, how can I make my program more efficient?
The program reads through my Excel file that contains 2 columns (SKU and quantity), sends HTTP request to Shopify and finds each item’s Inventory ID, and sends another request to update inventory with the following query:
The program sends two requests, leading to an extended update duration. When I have 500 products, it takes approximately 10 mins. Is it possible to update all SKUs in one request?
Any input is appreciated! Thank you for your time reading the question.
Thank you very much for your reply. The documentation is a very good starting point for me to make the necessary modifications to the program, and the idea of store inventory ID in a spreadsheet significantly enhances its efficiency.