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

Rails - Shopify_api by kilua gank

$
0
0

I am creating an app for shopify using rails. I wondering, is there any way that I can get all the products from the merchant in batches?
 

From this wiki 

https://github.com/Shopify/shopify_api/wiki/API-examples-(WIP)

What we can get for products is either all of them or limit them (
ShopifyAPI::Product.find(:all, :params => {:limit => 10})
).

I wanna get all the product, but I am afraid if I do it not in batches, it will consume a lot of memory.

Is there any similar method such as: find_each or find_in_batches ??

Thanks

 

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



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