We often import contacts into segments that we use to send bulk emails. The contacts are often already in Mautic but the data we use to do the segmenting is in another system so we import new segments several times a week or more often. We currently have several hundred segments in our Mautic instance.
I’ve noticed that our cron task for updating segments “mautic:segments:update” takes a very long time to complete. I’m actually not sure if it is successfully finishing.
The segments created by the imports for bulk emails should not be updated. I see these listed in the output when running the task directly. It skips through them quickly but should I be deleting these old segments as they really provide no value anymore. Would deleting the segments have any impact on reports or contacts themselves? It seems that this is just a good housekeeping task but I want to make sure I’m not going to regret deleting the older segments.
I do see that some of our dynamic filter based segments take a really long time. The filter for the segment is defined as a minimum number of page views during the last week as the criteria. Is this just an expensive query to run on an instance with a little over 200,000 identified contacts and an additional 166,000 anonymous contacts? Any advice on steps I can use to increase the speed of updating Mautic segments or other best practices.