Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable27] fix: use faster method to fetch user count #40433

Merged
merged 1 commit into from
Sep 18, 2023

Commits on Sep 18, 2023

  1. fix: use faster method to fetch user count

    countUsers: the actual user count reported by the backend.
    countSeenUsers: count every user who was logged in once.
    
    1: We should avoid expensive operations (like asking every backend for it's user count) in migrations.
    2: The current check is wrong because countUsers returns an array. var_dump([] > 1000) => true ;)
    
    Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
    kesselb committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    efb01db View commit details
    Browse the repository at this point in the history