Subscription count total and query result different | Community
Skip to main content
Krishnanunni
Level 4
March 14, 2022
Solved

Subscription count total and query result different

  • March 14, 2022
  • 1 reply
  • 677 views

Hi all,

When we go to profile and target-> Subscription service -> {a particular service} and see the total count in the list, it shows as n. But when I query from recipient who are subscribed to the same service, it shows n-x records. So there are these x records in subscription service who are not present in recipient. But the foreign key recipient-id are all non empty. Does anyone know how those x records are generated?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Krishnanunni

Found that when we physically delete recipients who are subscribed, the subscription table doesn't remove the record. But when we query recipients which have subscription, those records won't be listed as there is no recipient with matching foreign key. 
So I guess physical delete of recipients should have a preceding unregister activity to unregister the user from subscription service. 

1 reply

Krishnanunni
KrishnanunniAuthorAccepted solution
Level 4
March 24, 2022

Found that when we physically delete recipients who are subscribed, the subscription table doesn't remove the record. But when we query recipients which have subscription, those records won't be listed as there is no recipient with matching foreign key. 
So I guess physical delete of recipients should have a preceding unregister activity to unregister the user from subscription service.