Get Product Data from shopify GraphQL for over 10000 Products

Viewed 50

I have an extremely large selection of products in a collection (140,000), to get the data of 250 is fine but I need to get a list of tags for 140,000 products, I have created a bulkOperationRunQuery to get the data. Here is the query I use to run

mutation {
 bulkOperationRunQuery(
  query: """
  {
   products{
    edges{
      node{
        id
        tags
      }
    }
  }
}
   """
 ) {
bulkOperation {
  id
  status
}
userErrors {
  field
  message
}
}}

This Works but takes far to long to process, how can I make this quicker is there a set limit on the request

1 Answers

That is all you get for a massive ask like that. If you have 140,000 products you ask for the once. Then you have them, and speed should be of little consequence. There is no need to repeat yourself by asking for them again and again. If you are interested in changes, just listen to product change webhooks. Save yourself a lot of grief that way.

Related