Your software My PHP version is : 7.4.29 My MySQL/MariaDB version is (delete as applicable): MySQL/MariaDB version 5.7.42
SERVER: GCP compute engine vCPUs 2 Memory 7.5 GB
Your problem My problem is : Segment update cron task(php /var/www/html/mautic/bin/console mautic:segments:update) is taking too much time to update, so I want to know is this dependent on number of filters I am using, or what things can be impacting this.
Hi, it depends how large is your DB, especially your leads (leads) and sent emails list (email_stats).
Also: depends how many segments you have.
BTW how often you run segment update via cron?
Hello,
That is not a huge about of segments.
Could you please show here the cronjob command you use for segment update?
It would be nice to see how often you run it.
Joey
Okay, we are getting there.
How long it takes until it runs for 200.000 contacts.
I did a similar task yesterday it was 40 min, but we had 200k contacts assigned to different segments the first time.
If you run it again, only the changes will be updated, and it’s really fast.
One more point as we have implemented mautic as multitenancy way(single code instance and multiple DB), is this may be the reason of our mautic segment update slowdown.
In total we have 15 mautic runnig from the same code instance, and total DB size is 400GB