A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Has anyone had any experience of calls to productCreate (and productUpdate) taking longer than a second, for example I am see 5-10 seconds, maybe even more
I have an example: "x-request-id": "2c24d6fe-6fc5-4dc7-8e6f-ffda10ed1b0b"
Am I able see the logs for that or is that a Shopify thing.
My guess is that it is to do with the amount of data (variants and variant- metadata fields) but I want to understand more about that
Thanks
Grant
Solved! Go to the solution
This is an accepted solution.
For productUpdate, I will live with productCreate
I have worked this out.
I tried a number of different payloads in Shopify for a productUpdate, for example I removed chunks of metafields and images
I was able to narrow it down to the image part (mostly), this seems to be very slow. I tend to always send images, even if they haven't changed which I don't think is very good. I should only send them if they have changed
As far as I can see Shopify images don't support metafields, which means you can't unique identify the image with our own internal ID (we have worked around that my adding something into the altText). Without image metafields you also can't add in a last modified date or something like that.
The only way I can see to store information abut the image, is to use a product level metafield that is json, and use that to store data all about the images
Thanks
Grant
This is an accepted solution.
For productUpdate, I will live with productCreate
I have worked this out.
I tried a number of different payloads in Shopify for a productUpdate, for example I removed chunks of metafields and images
I was able to narrow it down to the image part (mostly), this seems to be very slow. I tend to always send images, even if they haven't changed which I don't think is very good. I should only send them if they have changed
As far as I can see Shopify images don't support metafields, which means you can't unique identify the image with our own internal ID (we have worked around that my adding something into the altText). Without image metafields you also can't add in a last modified date or something like that.
The only way I can see to store information abut the image, is to use a product level metafield that is json, and use that to store data all about the images
Thanks
Grant