Why Is My Shopify Sync Slow or Delayed?
Question
Why does my Shopify connection sync slowly or experience significant delays?
Environment
- Connector: Shopify
Answer
Your Shopify connection may sync slowly or experience delays if you have included certain tables in your connection schema that require nested API calls.
What causes slow or delayed Shopify syncs?
We make nested calls to the following Shopify endpoints:
DISCOUNT_CODEFULFILLMENT_EVENTFULFILLMENT_ORDER*_METAFIELDTRANSACTION
Including these tables in your connection schema may increase your sync time. The FULFILLMENT_EVENT table is particularly likely to increase your sync time. When you attempt to include it in your schema, we display the following warning:
Syncing 'fulfillment_event' table might slow down your sync
How to improve your Shopify sync speed
To exclude tables and optimize your sync speed:
- In Fivetran, go to your Shopify connection page.
- Select the Schema tab.
- Uncheck the tables you want to exclude from your sync.
- Click Save changes.
To optimize the sync speed during historical syncs, exclude the following tables:
DISCOUNT_CODEFULFILLMENT_EVENTFULFILLMENT_ORDER*_METAFIELDCUSTOMER_VISITTRANSACTION
To optimize the sync speed during incremental syncs, exclude the following tables:
DISCOUNT_CODEFULFILLMENT_EVENT*_METAFIELD
We particularly recommend excluding the FULFILLMENT_EVENT table. To check if the FULFILLMENT_EVENT table is impacting your sync speed, do the following:
- Review your logs using our Fivetran Platform connector or external logging services.
- Select the latest log to see all relevant information.
- Look for a URI parameter that includes the word fulfillment. For example,
https://<shopify_url>.myshopify.com/admin/api/2021-07/orders/<order_id>/fulfillments/<fulfillments_id>/events.json?limit=250.