Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Marcio Vieira commented on API Call to get Total Product Variants in Database

$
0
0

Lisa, since you mentioned updating inventory quantity of multiple SKUs, I'm assuming you're writing a private app to synchronize your product availability to some local database/inventory management system (let me know if this is a bad assumption).  So, what if you kept a local table (database or even a text file) containing all SKUs and their respective product and variant IDs?  This way, you would be able to quickly get everything you wanted (variant count, matching products and variants, etc) using a local query instead of a very "expensive" series of API calls.  We're talking milliseconds vs (potentially) minutes here.  Once you determine, from this local "mirror", which variants need to be updated, then you could issue API calls to update only those SKUs that changed.  Of course you would need to keep the mirror up to date, but the benefits are enormous.


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>