Mautic Community Forums

Is there a reson to use cron jobs?

Hi folks,



I got quite intrigued why Mautic use cron jobs, yo such a simple question as lead classification.



Once you define that Lead List A = person who did sing-up. Would not be just a inner join? or some flag in a some table? Is it related to performance?



I would be thankful to learn / understand how Mautic works.



Thank you.

Hi folks,

I got quite intrigued why Mautic use cron jobs, yo such a simple question as lead classification.

Once you define that Lead List A = person who did sing-up. Would not be just a inner join? or some flag in a some table? Is it related to performance?

I would be thankful to learn / understand how Mautic works.

Thank you.

Hi, good question and you answered it right. It is because of performance. Mautic is ready to handle millions of leads. Imagine if you create a list and add all leads into that list. With that many leads, it would certainly overcome the time or memory limit of most servers.

Mautic uses a batch process to handle these tasks. So every time the cron runs the “mautic:leadlists:update” command it will update only part of all leads.