App reviews, troubleshooting, and recommendations
We run an app and intend to make prolific use of bulk operations. The app creates fulfillment services and has stock updates enabled.
Recently, we ran a bulk operation on about 15,000 products. This generated quite a bit of activity over the next 8 hours. Some of that activity resulted in service degradation.
Spike in log records after starting bulk operation.
Spike in database load coinciding with increased log activity.
It seems that for every product that is updated, there is one fetch_stock.json request. If you consider that the responses to fetch_stock.json requests will accept the inventory levels for multiple SKUs, then this seems a bit excessive.
Optimized query and reran bulk operation to confirm issue and measure impact. Returned empty responses after confirming issue.
A couple of lessons here:
Solved! Go to the solution
This is an accepted solution.
Some final thoughts about this:
After implementing a queueing and caching strategy for the flood of activity, there's still 15,000x more requests being made than is sensible. It still doesn't make sense to make one fetch_stock.json request for every product updated in a bulk operation. It's still a waste of bandwidth and poor use of network traffic.
Reminder:
If you're doing bulk product operations on thousands of products, be prepared to deal with the feedback from Shopify. It sends just as many requests back to your fulfillment service.
This is an accepted solution.
Some final thoughts about this:
After implementing a queueing and caching strategy for the flood of activity, there's still 15,000x more requests being made than is sensible. It still doesn't make sense to make one fetch_stock.json request for every product updated in a bulk operation. It's still a waste of bandwidth and poor use of network traffic.
Reminder:
If you're doing bulk product operations on thousands of products, be prepared to deal with the feedback from Shopify. It sends just as many requests back to your fulfillment service.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025