You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As result of 2nd requests we usually getting following error in logs:
[2018-11-09 12:14:05] MailChimpLogger.INFO: Resource Not Found for Api Call: [https://us11.api.mailchimp.com/3.0/ecommerce/stores/c165314426294f1f4aff49977407e962/customers/353087?fields=email_address] using method [GET]
Detail: [The requested resource could not be found.]
Params:
{"fields":"email_address"}
[] []
Usually these requests took ~0.2 seconds each.
How it can be improved:
Create table with following info - mailchimp store id, mailchimp customer id and email.
During customers export - export customers that are needed for orders at first, then fill up this table
When exporting customers - export customers that required for orders sync at first
during orders export - use data from table for getting this info.
The text was updated successfully, but these errors were encountered:
gonzaloebiz
changed the title
Orders sync is slow with big amount of data
Avoid getByEmail calls when sending Orders and Carts to Mailchimp
Feb 22, 2019
Issue Description
Preconditions
Steps to reproduce
N/A
Actual and Expected result
Right now cron job ebizmart_ecommerce runs every 5 minutes and took ~4 minutes for me. Preparing orders info takes ~3.5 minutes of that time
Additional information
During preparing orders export there is two calls to Mailchimp API for getting customer info:
mc-magento2/Model/Api/Order.php
Line 369 in 0c5d379
mc-magento2/Model/Api/Order.php
Line 391 in 0c5d379
As result of 2nd requests we usually getting following error in logs:
Usually these requests took ~0.2 seconds each.
How it can be improved:
The text was updated successfully, but these errors were encountered: