You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While accumulating subscribers in message_subscribe_message_subscribe_get_subscribers(), a query is issued for each type of subscription to get users with subscriptions that match the given context. If a limit is being utilized (e.g. for queue running), there is a good chance that the delivery candidate does not reflect all the valid subscriptions. For example, if the limit was 3 and there were users with valid subscriptions:
term: [5, 20, 32, 44]
node: [5, 15, 22, 32, 44]
The first batch round, it would query and find [5, 20, 32] due to the term subscriptions but only [5, 15, 22] for node subscriptions. The delivery candidate for user 32 would only reflect the term subscription even though they also had an applicable node subscription.
Also, as a side effect of #88, you end up with more than the user limit being processed. (Instead you get up to "number of subscription types" X limit.)
The text was updated successfully, but these errors were encountered:
kevin-dutra
added a commit
to kevin-dutra/message_subscribe
that referenced
this issue
Jun 6, 2017
While accumulating subscribers in
message_subscribe_message_subscribe_get_subscribers()
, a query is issued for each type of subscription to get users with subscriptions that match the given context. If a limit is being utilized (e.g. for queue running), there is a good chance that the delivery candidate does not reflect all the valid subscriptions. For example, if the limit was 3 and there were users with valid subscriptions:term: [5, 20, 32, 44]
node: [5, 15, 22, 32, 44]
The first batch round, it would query and find [5, 20, 32] due to the term subscriptions but only [5, 15, 22] for node subscriptions. The delivery candidate for user 32 would only reflect the term subscription even though they also had an applicable node subscription.
Also, as a side effect of #88, you end up with more than the user limit being processed. (Instead you get up to "number of subscription types" X limit.)
The text was updated successfully, but these errors were encountered: