• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Future fix Optimising alerts by mass-sending method

Robbo

Well-known member
#2
One of the downsides of data writers being shown here I think. I'd like to see data writer functionality that could group inserts/updates in some way when all content is the same it is using just with one column different (as in the user_id in this example).
 

Digital Doctor

Well-known member
#3
Would it be useful / possible to distribute mass alerts over time ?

FWIW, an easy way to get rid of this problem is to close mass threads and open up a follow up thread.

or get rid of "automatically watch threads which you have replied".

Of course, "automatically watch threads which you have replied" is a great feature to get new users engaged. :)
 

guiltar

Well-known member
#5
Moreover, when conversation has 100 and more members server doesn't respond at the time and member post duplicate messages.

Please think about making email notifications by cron.
For example, our national social network vk.com send emails not at the moment but after some time.
It has next options:
  • Turn off email notifications
  • Send email notifications no more than one a day
  • Send email notifications no more than one a week
So your site mail will not be recognized as spam as now happen very often.

All alerts can be sent by 1 insert query instead of hundred of them.
 

digitalpoint

Well-known member
#7
One simple thing I've done is put outgoing emails and alerts needing to be sent into a variable, then do the actual sending on __destruct(). Doesn't change how long it takes to send them, but the user experience isn't part of that time.
 

Chris D

XenForo developer
Staff member
#8
@digitalpoint when you do move to 1.2 you might want to look at the Deferred system as an alternative.

Probably nothing wrong with what you're doing but the Deferred system is ideal for handling this as, likewise, it doesn't affect the user experience.
 

Xon

Well-known member
#11
I hope this is fixed for XF 2.0, as this is being an issue with pervasive use of email notifications in addition to reply alerts on the forums I look after.