Duplicate count in following #346

Closed
opened 2023-02-21 16:46:46 +00:00 by kimby · 2 comments

The numbers of people following duplicates in the profiles count
Can be confusing some times

The numbers of people following duplicates in the profiles count Can be confusing some times
5.8 KiB
Owner

The count is not intentionally duplicated. You may notice this problem with follower, following and note count.

The count you show on the left is taken from just viewing the profile normally, comes from a "cached" number (user.followersCount) so that the number of followers does not have to be recounted every time someone visits the profile page which could slow down the server significantly.

The count you show on the right is taken from Settings -> Other -> Account Info. This will actually re-count the respective statistics. You may notice that it takes a bit to load the statistics which is the time it takes to count those numbers.

Ideally those counts would always be in sync but there seem to be some places that do not properly increment or decrement those numbers.

In lieu of that, possible fixes could also be to

  1. update the statistics when viewing the account info page, since they've already been gathered and
  2. periodically update the statistics in some other way.
The count is not intentionally duplicated. You may notice this problem with follower, following and note count. The count you show on the left is taken from just viewing the profile normally, comes from a "cached" number (`user.followersCount`) so that the number of followers does not have to be recounted every time someone visits the profile page which could slow down the server significantly. The count you show on the right is taken from Settings -> Other -> Account Info. This will actually re-count the respective statistics. You may notice that it takes a bit to load the statistics which is the time it takes to count those numbers. Ideally those counts would always be in sync but there seem to be some places that do not properly increment or decrement those numbers. In lieu of that, possible fixes could also be to 1) update the statistics when viewing the account info page, since they've already been gathered and 2) periodically update the statistics in some other way.
Owner

Option 1 has been implemented in commit d55f8742b8. If you go to the account info page named above, the numbers will be recounted and then stored in the profile so when you go back to the user profile, the number should be corrected.

Option 1 has been implemented in commit d55f8742b8cd6b2965c5e93690c8a57d9350b8e1. If you go to the account info page named above, the numbers will be recounted and then stored in the profile so when you go back to the user profile, the number should be corrected.
Sign in to join this conversation.
No Label
feature
fix
upkeep
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#346
No description provided.