Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace cron-based rebuilding with event-based one #3058

Closed
PatchRanger opened this issue Dec 6, 2016 · 4 comments
Closed

Replace cron-based rebuilding with event-based one #3058

PatchRanger opened this issue Dec 6, 2016 · 4 comments
Labels
feature A new feature for inclusion in minor or major releases

Comments

@PatchRanger
Copy link
Contributor

PatchRanger commented Dec 6, 2016

Q A
Bug report? n
Feature request? n
Enhancement? y

Description:

I have not extremly large though quite big Mautic database - about 8 GB.
The problem is that my crons grab all of the hosting resources - and hoster by that reason sometimes cuts Mautic processes off.
I've mentioned already here that we already switched to archive pricing plan in order to satisfy (quickly growing) Mautic database CP hunger - but nevertheless the limits got exceeding again.
The hoster gave me slow queries log: it looks homogenous - it means that Mautic team have already optimized database load by creating indexes where they are needed.
So the problem is: database load is extremely high - but there is no non-cardinal way to optimize.

Suggestion:

I suggest to replace cron-based rebuilding with event-based one: competely remove cron-jobs - having "subscriber-notifier" pattern implemented instead.
It means:

  • Each time a contact is created/updated/deleted, it notifies segments. Segments (according to their own logic) decide whether to add this concrete contact to them or delete.
  • Each time a segment adds/removes a contact, it notifies segment-based campaigns. Campaigns trigger their own set of actions - applying to that individual contact.
  • Form-based campaigns get triggered after new form submission.

That's it.

Pros:

Cons:
Can't see any.

@kuzmany
Copy link
Member

kuzmany commented Dec 6, 2016

👍

@zenzozen
Copy link

+1
It would be a huge improvement!

@zenzozen
Copy link

I am abandoning mautic because performance issues (300.000 contacts).
Sadly. Mautic is a very good tool, but cant handle too many contacts with this cron-based rebuilding approach. =(

@dbhurley
Copy link
Member

In order to improve engagement and increase visibility to this feature request we are closing this issue on GitHub and recommending all Feature Requests (without code attachment) be placed in the Ideas forum on our community site.

We recommend you post your ideas to Mautic's forum so others can comment on them and help turn your ideas into a proof of concept and eventually an exciting new feature in Mautic.

More information about this move can be found in our blog announcement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature for inclusion in minor or major releases
Projects
None yet
Development

No branches or pull requests

5 participants