Also calculate counts including federated instances #12

Merged
nutomic merged 1 commit from federated-counts into main 2022-12-07 20:38:05 +00:00
Owner

Example for lemmy.ml, here are only local stats:

"counts": {
    "id": 1,
    "site_id": 1,
    "users": 18457,
    "posts": 69001,
    "comments": 138354,
    "communities": 2921,
    "users_active_day": 53,
    "users_active_week": 148,
    "users_active_month": 341,
    "users_active_half_year": 894
}

And here the aggregated stats from all federated instances:

"federated_counts": {
    "users": {
        "total": 46727,
        "activeHalfyear": 6627,
        "activeMonth": 3130
    },
    "posts": 588935,
    "comments": 444218
}
Example for lemmy.ml, here are only local stats: ``` "counts": { "id": 1, "site_id": 1, "users": 18457, "posts": 69001, "comments": 138354, "communities": 2921, "users_active_day": 53, "users_active_week": 148, "users_active_month": 341, "users_active_half_year": 894 } ``` And here the aggregated stats from all federated instances: ``` "federated_counts": { "users": { "total": 46727, "activeHalfyear": 6627, "activeMonth": 3130 }, "posts": 588935, "comments": 444218 } ```
nutomic added 1 commit 2022-12-05 15:34:13 +00:00
nutomic force-pushed federated-counts from 3fe9e0f6b9 to ea57a16987 2022-12-07 14:42:21 +00:00 Compare
nutomic changed title from WIP: Also calculate counts including federated instances to Also calculate counts including federated instances 2022-12-07 20:38:01 +00:00
nutomic merged commit bcb852cfeb into main 2022-12-07 20:38:05 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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: LemmyNet/lemmy-stats-crawler#12
No description provided.